annotate python/hg-tricks.py @ 378:0e99d3a68066

notes to self....that didnt quite do what we wanted :(
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 24 Jul 2013 19:36:46 -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