annotate python/hg-tricks.py @ 351:971e7deca495
got --print working, maybe
author |
Jeff Hammel <jhammel@mozilla.com> |
date |
Thu, 27 Jun 2013 02:01:32 -0700 (2013-06-27) |
parents |
a25eb7e42889 |
children |
11ac996b9c49 |
rev |
line source |
311
|
1 # check status
|
|
2 / # check for outstanding changes
|
|
3 output = self._call(['st']).strip()
|
|
4 lines = [line for line in output.splitlines()
|
|
5 if not line.startswith('?')]
|
|
6 if lines:
|
|
7 print "Outstanding changes:"
|
|
8 print output
|
|
9 raise AssertionError
|