mercurial/__init__.py
author Adrian Buehlmann <adrian@cadifra.com>
Fri, 27 May 2011 15:59:52 +0200
changeset 14450 d1a1578c5f78
parent 0 9117c6561b0b
child 27220 4374d819ccd5
permissions -rw-r--r--
commands.remove: don't use workingctx.remove(list, unlink=True) workingctx.remove(list, unlink=True) is unsuited here, because it does too much: it also unlinks added files. But the command 'hg remove' is specified to *never* unlink added files. Instead, we now unlink the files at the commands.remove level (if --after was not specified) and use workingctx.forget for all files. As an added bonus, this happens to eliminate a wlock acquire/release pair, since the previous implementation caused acquire wlock release wlock acquire wlock release wlock where the first pair of acquire/release was caused by the workingctx.forget call, and the second by the workingctx.remove call.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines: