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