changeset 27:bd358da5c346

this is getting out of hand
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 07 Dec 2012 15:41:01 -0800
parents fa1215cee8c4
children faacdfcd8ac9
files mozillatry.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mozillatry.py	Fri Dec 07 15:31:24 2012 -0800
+++ b/mozillatry.py	Fri Dec 07 15:41:01 2012 -0800
@@ -49,9 +49,9 @@
         if not patches and not update:
             hg_dir = os.path.join(repo, '.hg')
             assert os.path.exists(hg_dir) and os.path.isdir(hg_dir)
-            patches = os.path.join(hg_dir, 'patches')
-            if os.path.exists(patches):
-                shutil.rmtree(patches)
+            patches_dir = os.path.join(hg_dir, 'patches')
+            if os.path.exists(patches_dir):
+                shutil.rmtree(patches_dir)
             call(['hg', 'qinit'], cwd=repo)
             # TODO: ensure there's something to commit
             call(['hg', 'qnew', datetime.datetime.now().strftime("%Y%m%d%H%M%S")], cwd=repo)