annotate python/hg-tricks.py @ 355:93c8f28d485d

boo
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 28 Jun 2013 10:26:54 -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