diff mercurial/commands.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 ec2aae8b375d
children 71938479eff9
line wrap: on
line diff
--- a/mercurial/commands.py	Thu May 19 22:44:01 2011 +0200
+++ b/mercurial/commands.py	Thu May 19 22:44:01 2011 +0200
@@ -3105,8 +3105,8 @@
                 repo.dirstate.setbranch(branch or 'default')
 
             files = {}
-            patch.patch(ui, repo, tmpname, strip=strip, cwd=repo.root,
-                        files=files, eolmode=None, similarity=sim / 100.0)
+            patch.patch(ui, repo, tmpname, strip=strip, files=files,
+                        eolmode=None, similarity=sim / 100.0)
             files = list(files)
             if opts.get('no_commit'):
                 if message: