Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 18963:c31b8dc9de67
debugrebuildstate: rename to debugrebuilddirstate
There is a lot of state, but this command is for rebuilding the dirstate.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 15 Apr 2013 01:41:47 +0200 |
parents | c0b2cb62067f |
children | 32843795e9b3 |
comparison
equal
deleted
inserted
replaced
18962:c0b2cb62067f | 18963:c31b8dc9de67 |
---|---|
2244 ui.write(_("depth(a): %d depth(b): %d\n") % (pa._depth, pb._depth)) | 2244 ui.write(_("depth(a): %d depth(b): %d\n") % (pa._depth, pb._depth)) |
2245 ui.write(_("delta: %d hdist: %d distance: %d relation: %s\n") % | 2245 ui.write(_("delta: %d hdist: %d distance: %d relation: %s\n") % |
2246 (abs(pa._depth - pb._depth), pvec._hamming(pa._vec, pb._vec), | 2246 (abs(pa._depth - pb._depth), pvec._hamming(pa._vec, pb._vec), |
2247 pa.distance(pb), rel)) | 2247 pa.distance(pb), rel)) |
2248 | 2248 |
2249 @command('debugrebuildstate', | 2249 @command('debugrebuilddirstate|debugrebuildstate', |
2250 [('r', 'rev', '', _('revision to rebuild to'), _('REV'))], | 2250 [('r', 'rev', '', _('revision to rebuild to'), _('REV'))], |
2251 _('[-r REV]')) | 2251 _('[-r REV]')) |
2252 def debugrebuildstate(ui, repo, rev): | 2252 def debugrebuilddirstate(ui, repo, rev): |
2253 """rebuild the dirstate as it would look like for the given revision | 2253 """rebuild the dirstate as it would look like for the given revision |
2254 | 2254 |
2255 If no revision is specified the first current parent will be used. | 2255 If no revision is specified the first current parent will be used. |
2256 | 2256 |
2257 The dirstate will be set to the files of the given revision. | 2257 The dirstate will be set to the files of the given revision. |