Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 45880:d7a508a75d72
strip: move into core
As discussed at the 5.2 sprint, replace strip extension by a core
command, debugstrip. Obviously, the extension stays for backwards
compatibility.
As an implementation note, I moved the strip file as is into core,
which is not done elsewhere, AFAIK. I could have inlined it into
debugcommands, but that doesn't sound great.
Differential Revision: https://phab.mercurial-scm.org/D9285
author | Valentin Gatien-Baron <valentin.gatienbaron@gmail.com> |
---|---|
date | Sun, 08 Nov 2020 16:23:35 -0500 |
parents | d6279c43fc60 |
children | 1a72e4839795 |
comparison
equal
deleted
inserted
replaced
45879:11842aad3195 | 45880:d7a508a75d72 |
---|---|
76 setdiscovery, | 76 setdiscovery, |
77 simplemerge, | 77 simplemerge, |
78 sshpeer, | 78 sshpeer, |
79 sslutil, | 79 sslutil, |
80 streamclone, | 80 streamclone, |
81 strip, | |
81 tags as tagsmod, | 82 tags as tagsmod, |
82 templater, | 83 templater, |
83 treediscovery, | 84 treediscovery, |
84 upgrade, | 85 upgrade, |
85 url as urlmod, | 86 url as urlmod, |
103 sidedata, | 104 sidedata, |
104 ) | 105 ) |
105 | 106 |
106 release = lockmod.release | 107 release = lockmod.release |
107 | 108 |
108 command = registrar.command() | 109 table = {} |
110 table.update(strip.command._table) | |
111 command = registrar.command(table) | |
109 | 112 |
110 | 113 |
111 @command(b'debugancestor', [], _(b'[INDEX] REV1 REV2'), optionalrepo=True) | 114 @command(b'debugancestor', [], _(b'[INDEX] REV1 REV2'), optionalrepo=True) |
112 def debugancestor(ui, repo, *args): | 115 def debugancestor(ui, repo, *args): |
113 """find the ancestor revision of two revisions in a given index""" | 116 """find the ancestor revision of two revisions in a given index""" |