Mercurial > hg-stable
changeset 18852:300844cb1a56
duplicatecopies: fix arg name and docstring
While most callers do indeed use duplicatecopies with a rev and its parent,
rebase doesn't.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Thu, 28 Mar 2013 00:14:27 -0700 |
parents | a60963c02f92 |
children | 78d760aa3607 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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):