mercurial/commands.py
changeset 20364 a6cf48b2880d
parent 20293 2f6b3900be64
child 20389 9a86b5b8e0d8
equal deleted inserted replaced
20363:e3ee7ec85a15 20364:a6cf48b2880d
  2556         ui.note(revset.prettyformat(tree), "\n")
  2556         ui.note(revset.prettyformat(tree), "\n")
  2557         newtree = revset.findaliases(ui, tree)
  2557         newtree = revset.findaliases(ui, tree)
  2558         if newtree != tree:
  2558         if newtree != tree:
  2559             ui.note(revset.prettyformat(newtree), "\n")
  2559             ui.note(revset.prettyformat(newtree), "\n")
  2560     func = revset.match(ui, expr)
  2560     func = revset.match(ui, expr)
  2561     for c in func(repo, range(len(repo))):
  2561     for c in func(repo, revset.baseset(range(len(repo)))):
  2562         ui.write("%s\n" % c)
  2562         ui.write("%s\n" % c)
  2563 
  2563 
  2564 @command('debugsetparents', [], _('REV1 [REV2]'))
  2564 @command('debugsetparents', [], _('REV1 [REV2]'))
  2565 def debugsetparents(ui, repo, rev1, rev2=None):
  2565 def debugsetparents(ui, repo, rev1, rev2=None):
  2566     """manually set the parents of the current working directory
  2566     """manually set the parents of the current working directory