duplicatecopies: fix arg name and docstring
authorSiddharth Agarwal <sid0@fb.com>
Thu, 28 Mar 2013 00:14:27 -0700
changeset 18852 300844cb1a56
parent 18851 a60963c02f92
child 18853 78d760aa3607
duplicatecopies: fix arg name and docstring While most callers do indeed use duplicatecopies with a rev and its parent, rebase doesn't.
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Fri Mar 29 19:54:06 2013 -0700
+++ b/mercurial/cmdutil.py	Thu Mar 28 00:14:27 2013 -0700
@@ -1590,9 +1590,9 @@
     forgot.extend(forget)
     return bad, forgot
 
-def duplicatecopies(repo, rev, p1):
-    "Reproduce copies found in the source revision in the dirstate for grafts"
-    for dst, src in copies.pathcopies(repo[p1], repo[rev]).iteritems():
+def duplicatecopies(repo, rev, fromrev):
+    '''reproduce copies from fromrev to rev in the dirstate'''
+    for dst, src in copies.pathcopies(repo[fromrev], repo[rev]).iteritems():
         repo.dirstate.copy(src, dst)
 
 def commit(ui, repo, commitfunc, pats, opts):