changeset 10:5ea675cfecd9

clean up some crap
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 12 Mar 2013 14:29:15 -0700
parents 0d741a309fdb
children f7fee857c69a
files hq/main.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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)