annotate python/hg-tricks.py @ 370:4198a58cc520

adding aliases
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 21 Jul 2013 05:35:28 -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