Show More
@@ -578,6 +578,15 b' def overridefilemerge(origfn, repo, myno' | |||||
578 | repo.wwrite(fcd.path(), fco.data(), fco.flags()) |
|
578 | repo.wwrite(fcd.path(), fco.data(), fco.flags()) | |
579 | return 0 |
|
579 | return 0 | |
580 |
|
580 | |||
|
581 | def copiespathcopies(orig, ctx1, ctx2): | |||
|
582 | copies = orig(ctx1, ctx2) | |||
|
583 | updated = {} | |||
|
584 | ||||
|
585 | for k, v in copies.iteritems(): | |||
|
586 | updated[lfutil.splitstandin(k) or k] = lfutil.splitstandin(v) or v | |||
|
587 | ||||
|
588 | return updated | |||
|
589 | ||||
581 | # Copy first changes the matchers to match standins instead of |
|
590 | # Copy first changes the matchers to match standins instead of | |
582 | # largefiles. Then it overrides util.copyfile in that function it |
|
591 | # largefiles. Then it overrides util.copyfile in that function it | |
583 | # checks if the destination largefile already exists. It also keeps a |
|
592 | # checks if the destination largefile already exists. It also keeps a |
@@ -9,7 +9,7 b'' | |||||
9 | '''setup for largefiles extension: uisetup''' |
|
9 | '''setup for largefiles extension: uisetup''' | |
10 |
|
10 | |||
11 | from mercurial import archival, cmdutil, commands, extensions, filemerge, hg, \ |
|
11 | from mercurial import archival, cmdutil, commands, extensions, filemerge, hg, \ | |
12 | httppeer, merge, scmutil, sshpeer, wireproto, revset, subrepo |
|
12 | httppeer, merge, scmutil, sshpeer, wireproto, revset, subrepo, copies | |
13 | from mercurial.i18n import _ |
|
13 | from mercurial.i18n import _ | |
14 | from mercurial.hgweb import hgweb_mod, webcommands |
|
14 | from mercurial.hgweb import hgweb_mod, webcommands | |
15 |
|
15 | |||
@@ -37,6 +37,8 b' def uisetup(ui):' | |||||
37 | extensions.wrapfunction(cmdutil, 'remove', overrides.cmdutilremove) |
|
37 | extensions.wrapfunction(cmdutil, 'remove', overrides.cmdutilremove) | |
38 | extensions.wrapfunction(cmdutil, 'forget', overrides.cmdutilforget) |
|
38 | extensions.wrapfunction(cmdutil, 'forget', overrides.cmdutilforget) | |
39 |
|
39 | |||
|
40 | extensions.wrapfunction(copies, 'pathcopies', overrides.copiespathcopies) | |||
|
41 | ||||
40 | # Subrepos call status function |
|
42 | # Subrepos call status function | |
41 | entry = extensions.wrapcommand(commands.table, 'status', |
|
43 | entry = extensions.wrapcommand(commands.table, 'status', | |
42 | overrides.overridestatus) |
|
44 | overrides.overridestatus) |
@@ -419,4 +419,24 b' Test a directory commit with a changed l' | |||||
419 | A a.dat |
|
419 | A a.dat | |
420 | A a.txt |
|
420 | A a.txt | |
421 |
|
421 | |||
|
422 | $ hg ci -m "add a.*" | |||
|
423 | $ hg mv a.dat b.dat | |||
|
424 | $ hg mv foo/bar/abc foo/bar/def | |||
|
425 | $ hg status -C | |||
|
426 | A b.dat | |||
|
427 | a.dat | |||
|
428 | A foo/bar/def | |||
|
429 | foo/bar/abc | |||
|
430 | R a.dat | |||
|
431 | R foo/bar/abc | |||
|
432 | ||||
|
433 | $ hg ci -m "move large and normal" | |||
|
434 | $ hg status -C --rev '.^' --rev . | |||
|
435 | A b.dat | |||
|
436 | a.dat | |||
|
437 | A foo/bar/def | |||
|
438 | foo/bar/abc | |||
|
439 | R a.dat | |||
|
440 | R foo/bar/abc | |||
|
441 | ||||
422 | $ cd .. |
|
442 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now