mercurial/commands.py
changeset 20526 9ad6dae67845
parent 20500 ce3f3082ec45
child 20544 8982a5397687
equal deleted inserted replaced
20525:aa73a6327df4 20526:9ad6dae67845
  2565             ui.note(revset.prettyformat(newtree), "\n")
  2565             ui.note(revset.prettyformat(newtree), "\n")
  2566         if opts["optimize"]:
  2566         if opts["optimize"]:
  2567             weight, optimizedtree = revset.optimize(newtree, True)
  2567             weight, optimizedtree = revset.optimize(newtree, True)
  2568             ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n")
  2568             ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n")
  2569     func = revset.match(ui, expr)
  2569     func = revset.match(ui, expr)
  2570     for c in func(repo, revset.baseset(range(len(repo)))):
  2570     for c in func(repo, revset.spanset(repo)):
  2571         ui.write("%s\n" % c)
  2571         ui.write("%s\n" % c)
  2572 
  2572 
  2573 @command('debugsetparents', [], _('REV1 [REV2]'))
  2573 @command('debugsetparents', [], _('REV1 [REV2]'))
  2574 def debugsetparents(ui, repo, rev1, rev2=None):
  2574 def debugsetparents(ui, repo, rev1, rev2=None):
  2575     """manually set the parents of the current working directory
  2575     """manually set the parents of the current working directory