# HG changeset patch # User Jeff Hammel # Date 1368785968 25200 # Node ID b878f4ce93fc71e0e68cd30f3d7bc188ee204aca # Parent 6c4f258fae85ae9e06f4818513bca2446fe67fa3 screwed this one up diff -r 6c4f258fae85 -r b878f4ce93fc hq/main.py --- a/hq/main.py Fri May 17 03:15:03 2013 -0700 +++ b/hq/main.py Fri May 17 03:19:28 2013 -0700 @@ -77,6 +77,7 @@ if mq is true, update the patch queue, if versioned """ # check for outstanding changes + import pdb; pdb.set_trace() output = self._call(['st']).strip() lines = [line for line in output.splitlines() if not line.startswith('?')] @@ -118,6 +119,7 @@ display status """ return '\n'.join([self._call(i).strip() for i in ('root', 'status', 'qseries')]) + st = status def directory(self): """patch queue directory""" @@ -139,12 +141,12 @@ def _call(self, *args, **kwargs): command = [self.binary] + list(args) kwargs.setdefault('cwd', self.root) - return call(command, cwd=self.root) + return call(command, **kwargs) def _patch_command(self, *command, **kwargs): """perform a command in the patch repository""" kwargs.setdefault(cwd=self.directory()) - return call(command, **kwargs) + return call(command) def _versioned(self): """is the patch queue versioned?"""