# HG changeset patch # User Jeff Hammel # Date 1363123755 25200 # Node ID 5ea675cfecd9f078aeac643c501f4c088442cbd4 # Parent 0d741a309fdb7416b7f856956f8abf33870e1bdf clean up some crap diff -r 0d741a309fdb -r 5ea675cfecd9 hq/main.py --- a/hq/main.py Tue Mar 12 14:06:29 2013 -0700 +++ b/hq/main.py Tue Mar 12 14:29:15 2013 -0700 @@ -133,10 +133,7 @@ def _patch_command(self, *command): """perform a command in the patch repository""" - _oldpwd = os.getcwd() - os.chdir(self._patch_repo()) - call(command) - os.chdir(_oldpwd) + call(command, cwd=self.directory()) def main(args=sys.argv[1:]): parser = CommandParser(HQ)