# HG changeset patch # User Jeff Hammel # Date 1375167874 25200 # Node ID 11ac996b9c499d82923bba5e6e7b077f0a7cd0d4 # Parent f3472dd25d9eb2a41e303afd5b4e9867eec30864 make at least a pretend stub diff -r f3472dd25d9e -r 11ac996b9c49 python/hg-tricks.py --- a/python/hg-tricks.py Mon Jul 29 22:44:30 2013 -0700 +++ b/python/hg-tricks.py Tue Jul 30 00:04:34 2013 -0700 @@ -1,9 +1,20 @@ -# check status -/ # check for outstanding changes - output = self._call(['st']).strip() - lines = [line for line in output.splitlines() - if not line.startswith('?')] - if lines: - print "Outstanding changes:" - print output - raise AssertionError +""" +random collection of hg tricks in python +""" + +# XXX STUB + +from subprocess import check_output as call + +### check status + +def changes(hg='hg') + """check for outstanding changes""" + output = call([hg, 'st']).strip() + lines = [line for line in output.splitlines() + if not line.startswith('?')] + if lines: + print "Outstanding changes:" + print output + return True +