equal
deleted
inserted
replaced
673 operation is recorded, but no copying is performed. |
673 operation is recorded, but no copying is performed. |
674 |
674 |
675 This command takes effect in the next commit. To undo a copy |
675 This command takes effect in the next commit. To undo a copy |
676 before that, see hg revert. |
676 before that, see hg revert. |
677 """ |
677 """ |
678 wlock = repo.wlock(0) |
678 wlock = repo.wlock(False) |
679 errs, copied = docopy(ui, repo, pats, opts, wlock) |
679 errs, copied = docopy(ui, repo, pats, opts, wlock) |
680 return errs |
680 return errs |
681 |
681 |
682 def debugancestor(ui, index, rev1, rev2): |
682 def debugancestor(ui, index, rev1, rev2): |
683 """find the ancestor revision of two revisions in a given index""" |
683 """find the ancestor revision of two revisions in a given index""" |
2245 operation is recorded, but no copying is performed. |
2245 operation is recorded, but no copying is performed. |
2246 |
2246 |
2247 This command takes effect in the next commit. To undo a rename |
2247 This command takes effect in the next commit. To undo a rename |
2248 before that, see hg revert. |
2248 before that, see hg revert. |
2249 """ |
2249 """ |
2250 wlock = repo.wlock(0) |
2250 wlock = repo.wlock(False) |
2251 errs, copied = docopy(ui, repo, pats, opts, wlock) |
2251 errs, copied = docopy(ui, repo, pats, opts, wlock) |
2252 names = [] |
2252 names = [] |
2253 for abs, rel, exact in copied: |
2253 for abs, rel, exact in copied: |
2254 if ui.verbose or not exact: |
2254 if ui.verbose or not exact: |
2255 ui.status(_('removing %s\n') % rel) |
2255 ui.status(_('removing %s\n') % rel) |