view python/hg-tricks.py @ 318:cf793eb3811e

from https://wiki.mozilla.org/User:Asasaki:Cedar
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 05 Jun 2013 15:33:07 -0700
parents a25eb7e42889
children 11ac996b9c49
line wrap: on
line source

# 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