mercurial/commands.py
changeset 24458 7d87f672d069
parent 24456 a05c6b400616
child 24473 0142b59f5743
equal deleted inserted replaced
24457:c5022f3579b9 24458:7d87f672d069
  2927             ui.note(revset.prettyformat(newtree), "\n")
  2927             ui.note(revset.prettyformat(newtree), "\n")
  2928         if opts["optimize"]:
  2928         if opts["optimize"]:
  2929             weight, optimizedtree = revset.optimize(newtree, True)
  2929             weight, optimizedtree = revset.optimize(newtree, True)
  2930             ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n")
  2930             ui.note("* optimized:\n", revset.prettyformat(optimizedtree), "\n")
  2931     func = revset.match(ui, expr)
  2931     func = revset.match(ui, expr)
  2932     for c in func(repo):
  2932     revs = func(repo)
       
  2933     if ui.verbose:
       
  2934         ui.note("* set:\n", revset.prettyformatset(revs), "\n")
       
  2935     for c in revs:
  2933         ui.write("%s\n" % c)
  2936         ui.write("%s\n" % c)
  2934 
  2937 
  2935 @command('debugsetparents', [], _('REV1 [REV2]'))
  2938 @command('debugsetparents', [], _('REV1 [REV2]'))
  2936 def debugsetparents(ui, repo, rev1, rev2=None):
  2939 def debugsetparents(ui, repo, rev1, rev2=None):
  2937     """manually set the parents of the current working directory
  2940     """manually set the parents of the current working directory