mercurial/commands.py
changeset 18963 c31b8dc9de67
parent 18962 c0b2cb62067f
child 18994 32843795e9b3
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.