Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 4914:9a2a73ea6135
repo locks: use True/False
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 21 Jul 2007 16:02:09 -0500 |
parents | 30847b8af7ca |
children | 97b734fb9c6f |
comparison
equal
deleted
inserted
replaced
4913:46e39935ce33 | 4914:9a2a73ea6135 |
---|---|
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) |