annotate python/hg-tricks.py @ 353:ee8ab3de9c7f

f-ing print
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 27 Jun 2013 02:41:53 -0700
parents a25eb7e42889
children 11ac996b9c49
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
311
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 # check status
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 / # check for outstanding changes
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 output = self._call(['st']).strip()
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 lines = [line for line in output.splitlines()
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
5 if not line.startswith('?')]
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 if lines:
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
7 print "Outstanding changes:"
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
8 print output
a25eb7e42889 new stub
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
9 raise AssertionError