annotate python/hg-tricks.py @ 373:8d4a0a2a5038

not sure what i did
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 24 Jul 2013 02:38:16 -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