Show More
@@ -260,12 +260,11 b' def overrideadd(orig, ui, repo, *pats, *' | |||
|
260 | 260 | |
|
261 | 261 | return (result == 1 or bad) and 1 or 0 |
|
262 | 262 | |
|
263 | def overrideremove(orig, ui, repo, *pats, **opts): | |
|
264 |
|
|
|
265 |
result = orig(ui, repo, |
|
|
266 | restorematchfn() | |
|
267 | matcher = scmutil.match(repo[None], pats, opts) | |
|
268 | return removelargefiles(ui, repo, False, matcher, **opts) or result | |
|
263 | def cmdutilremove(orig, ui, repo, matcher, prefix, after, force, subrepos): | |
|
264 | normalmatcher = composenormalfilematcher(matcher, repo[None].manifest()) | |
|
265 | result = orig(ui, repo, normalmatcher, prefix, after, force, subrepos) | |
|
266 | return removelargefiles(ui, repo, False, matcher, after=after, | |
|
267 | force=force) or result | |
|
269 | 268 | |
|
270 | 269 | def overridestatusfn(orig, repo, rev2, **opts): |
|
271 | 270 | try: |
@@ -33,8 +33,7 b' def uisetup(ui):' | |||
|
33 | 33 | # and in the process of handling commit -A (issue3542) |
|
34 | 34 | entry = extensions.wrapfunction(scmutil, 'addremove', |
|
35 | 35 | overrides.scmutiladdremove) |
|
36 | entry = extensions.wrapcommand(commands.table, 'remove', | |
|
37 | overrides.overrideremove) | |
|
36 | extensions.wrapfunction(cmdutil, 'remove', overrides.cmdutilremove) | |
|
38 | 37 | entry = extensions.wrapcommand(commands.table, 'forget', |
|
39 | 38 | overrides.overrideforget) |
|
40 | 39 |
@@ -362,6 +362,9 b' Test update with subrepos.' | |||
|
362 | 362 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
363 | 363 | $ hg status -S |
|
364 | 364 | |
|
365 | $ hg rm -v subrepo/large.txt | |
|
366 | removing subrepo/large.txt (glob) | |
|
367 | $ hg revert -R subrepo subrepo/large.txt | |
|
365 | 368 | $ rm subrepo/large.txt |
|
366 | 369 | $ hg addremove -S |
|
367 | 370 | removing subrepo/large.txt |
General Comments 0
You need to be logged in to leave comments.
Login now