branch | stable |
changeset 19129 | bd19587a3347 |
parent 19024 | ab04e87a5f3b |
child 19211 | 3bfd7f1e7485 |
--- a/mercurial/cmdutil.py Fri May 03 09:44:50 2013 -0700 +++ b/mercurial/cmdutil.py Fri May 03 12:40:17 2013 -0700 @@ -2055,6 +2055,12 @@ checkout(f) normal(f) + copied = copies.pathcopies(repo[parent], ctx) + + for f in add[0] + undelete[0] + revert[0]: + if f in copied: + repo.dirstate.copy(copied[f], f) + if targetsubs: # Revert the subrepos on the revert list for sub in targetsubs: