diff hgext/mq.py @ 14382:2d16f15da7bd

patch: remove patch.patch() cwd argument
author Patrick Mezard <pmezard@gmail.com>
date Thu, 19 May 2011 22:44:01 +0200
parents d54f9bbcc640
children dc961471efde
line wrap: on
line diff
--- a/hgext/mq.py	Thu May 19 22:44:01 2011 +0200
+++ b/hgext/mq.py	Thu May 19 22:44:01 2011 +0200
@@ -620,7 +620,7 @@
         files = {}
         try:
             fuzz = patchmod.patch(self.ui, repo, patchfile, strip=1,
-                                  cwd=repo.root, files=files, eolmode=None)
+                                  files=files, eolmode=None)
             return (True, list(files), fuzz)
         except Exception, inst:
             self.ui.note(str(inst) + '\n')