##// END OF EJS Templates
debugcommands: add a debugpathcopies command...
Martin von Zweigbergk -
r41656:7dc160a5 default
parent child Browse files
Show More
@@ -38,6 +38,7 b' from . import ('
38 cmdutil,
38 cmdutil,
39 color,
39 color,
40 context,
40 context,
41 copies,
41 dagparser,
42 dagparser,
42 encoding,
43 encoding,
43 error,
44 error,
@@ -1804,6 +1805,18 b' def debugpathcomplete(ui, repo, *specs, '
1804 ui.write('\n'.join(repo.pathto(p, cwd) for p in sorted(files)))
1805 ui.write('\n'.join(repo.pathto(p, cwd) for p in sorted(files)))
1805 ui.write('\n')
1806 ui.write('\n')
1806
1807
1808 @command('debugpathcopies',
1809 cmdutil.walkopts,
1810 'hg debugcopies REV1 REV2 [FILE]',
1811 inferrepo=True)
1812 def debugpathcopies(ui, repo, rev1, rev2, *pats, **opts):
1813 """show copies between two revisions"""
1814 ctx1 = scmutil.revsingle(repo, rev1)
1815 ctx2 = scmutil.revsingle(repo, rev2)
1816 m = scmutil.match(ctx1, pats, opts)
1817 for dst, src in copies.pathcopies(ctx1, ctx2, m).items():
1818 ui.write('%s -> %s\n' % (src, dst))
1819
1807 @command('debugpeer', [], _('PATH'), norepo=True)
1820 @command('debugpeer', [], _('PATH'), norepo=True)
1808 def debugpeer(ui, path):
1821 def debugpeer(ui, path):
1809 """establish a connection to a peer repository"""
1822 """establish a connection to a peer repository"""
@@ -104,6 +104,7 b' Show debug commands if there are no othe'
104 debugnamecomplete
104 debugnamecomplete
105 debugobsolete
105 debugobsolete
106 debugpathcomplete
106 debugpathcomplete
107 debugpathcopies
107 debugpeer
108 debugpeer
108 debugpickmergetool
109 debugpickmergetool
109 debugpushkey
110 debugpushkey
@@ -280,6 +281,7 b' Show all commands + options'
280 debugnamecomplete:
281 debugnamecomplete:
281 debugobsolete: flags, record-parents, rev, exclusive, index, delete, date, user, template
282 debugobsolete: flags, record-parents, rev, exclusive, index, delete, date, user, template
282 debugpathcomplete: full, normal, added, removed
283 debugpathcomplete: full, normal, added, removed
284 debugpathcopies: include, exclude
283 debugpeer:
285 debugpeer:
284 debugpickmergetool: rev, changedelete, include, exclude, tool
286 debugpickmergetool: rev, changedelete, include, exclude, tool
285 debugpushkey:
287 debugpushkey:
@@ -1014,6 +1014,8 b' Test list of internal help commands'
1014 debugoptEXP (no help text available)
1014 debugoptEXP (no help text available)
1015 debugpathcomplete
1015 debugpathcomplete
1016 complete part or all of a tracked path
1016 complete part or all of a tracked path
1017 debugpathcopies
1018 show copies between two revisions
1017 debugpeer establish a connection to a peer repository
1019 debugpeer establish a connection to a peer repository
1018 debugpickmergetool
1020 debugpickmergetool
1019 examine which merge tool is chosen for specified file
1021 examine which merge tool is chosen for specified file
General Comments 0
You need to be logged in to leave comments. Login now