Mercurial > hg
comparison hgext/largefiles/uisetup.py @ 24230:23438bceba04
largefiles: report the source of copied/moved largefiles in status -C
Previously, the source was silently skipped because the largefile was in the
list of changed files, but the standin was in the copies dictionary. The source
is only displayed if the changed file is a key in the copies dictionary.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 25 Jan 2015 02:45:49 -0500 |
parents | 5ce8dcd05dc4 |
children | 66a69da9cde4 |
comparison
equal
deleted
inserted
replaced
24229:f903689680e6 | 24230:23438bceba04 |
---|---|
7 # GNU General Public License version 2 or any later version. | 7 # GNU General Public License version 2 or any later version. |
8 | 8 |
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 |
16 import overrides | 16 import overrides |
17 import proto | 17 import proto |
34 entry = extensions.wrapfunction(scmutil, 'addremove', | 34 entry = extensions.wrapfunction(scmutil, 'addremove', |
35 overrides.scmutiladdremove) | 35 overrides.scmutiladdremove) |
36 extensions.wrapfunction(cmdutil, 'add', overrides.cmdutiladd) | 36 extensions.wrapfunction(cmdutil, 'add', overrides.cmdutiladd) |
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 | |
40 extensions.wrapfunction(copies, 'pathcopies', overrides.copiespathcopies) | |
39 | 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) |
43 entry = extensions.wrapfunction(subrepo.hgsubrepo, 'status', | 45 entry = extensions.wrapfunction(subrepo.hgsubrepo, 'status', |