mercurial/commands.py
changeset 4649 52259d5fb76d
parent 4648 8e503fa54d2d
child 4650 15e22b483adc
equal deleted inserted replaced
4648:8e503fa54d2d 4649:52259d5fb76d
  1230     if not branchrevs:
  1230     if not branchrevs:
  1231         # Assume we're looking repo-wide heads if no revs were specified.
  1231         # Assume we're looking repo-wide heads if no revs were specified.
  1232         heads = repo.heads(start)
  1232         heads = repo.heads(start)
  1233     else:
  1233     else:
  1234         heads = []
  1234         heads = []
  1235         visitedset = set()
  1235         visitedset = util.set()
  1236         displayer = cmdutil.show_changeset(ui, repo, opts)
       
  1237         for branchrev in branchrevs:
  1236         for branchrev in branchrevs:
  1238             branch = repo.changectx(branchrev).branch()
  1237             branch = repo.changectx(branchrev).branch()
  1239             if branch in visitedset:
  1238             if branch in visitedset:
  1240                 continue
  1239                 continue
  1241             visitedset.add(branch)
  1240             visitedset.add(branch)