# HG changeset patch # User Jeff Hammel # Date 1368136841 25200 # Node ID 92484d1db1b24d9458ce994a2c5696dd024854ec # Parent f7fee857c69ac3ae881c3dba6d823c5a09d0adc4 fixes diff -r f7fee857c69a -r 92484d1db1b2 hq/main.py --- a/hq/main.py Tue Mar 12 14:43:25 2013 -0700 +++ b/hq/main.py Thu May 09 15:00:41 2013 -0700 @@ -28,10 +28,10 @@ # check for network self.network = network - if root is None: - root = call(['hg', 'root']).strip() - self.root = root + # repository root + self.root = root or call(['hg', 'root']).strip() + # hg binary self.binary = binary ### subcommands @@ -68,12 +68,10 @@ self._patch_command(*['hg', 'push']) def pull(self, repo=None): - """ - pull from the root repository - """ + """pull from the root repository""" # TODO: commit prior to realignment call(['hg', 'qpop', '--all']) - call(['hg', 'pull'] + repo and [repo] or []) + call(['hg', 'pull'] + (repo and [repo] or [])) call(['hg', 'qpush', '--all']) def goto(self, patch):