diff hgext/transplant.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 b33f3e35efb0
children bdf44e63a94c
line wrap: on
line diff
--- a/hgext/transplant.py	Thu May 19 22:44:01 2011 +0200
+++ b/hgext/transplant.py	Thu May 19 22:44:01 2011 +0200
@@ -227,8 +227,7 @@
         if patchfile:
             try:
                 files = {}
-                patch.patch(self.ui, repo, patchfile, cwd=repo.root,
-                            files=files, eolmode=None)
+                patch.patch(self.ui, repo, patchfile, files=files, eolmode=None)
                 files = list(files)
                 if not files:
                     self.ui.warn(_('%s: empty changeset') % revlog.hex(node))