mercurial/commands.py
changeset 37356 004e5c5821b2
parent 37312 e47bd4c71c5e
child 37358 d5e1678026fd
equal deleted inserted replaced
37355:5bcd5859b505 37356:004e5c5821b2
  2646         for branch in repo.branchmap():
  2646         for branch in repo.branchmap():
  2647             heads += repo.branchheads(branch, start, opts.get('closed'))
  2647             heads += repo.branchheads(branch, start, opts.get('closed'))
  2648         heads = [repo[h] for h in heads]
  2648         heads = [repo[h] for h in heads]
  2649 
  2649 
  2650     if branchrevs:
  2650     if branchrevs:
  2651         branches = set(repo[br].branch() for br in branchrevs)
  2651         branches = set(repo[r].branch()
       
  2652                        for r in scmutil.revrange(repo, branchrevs))
  2652         heads = [h for h in heads if h.branch() in branches]
  2653         heads = [h for h in heads if h.branch() in branches]
  2653 
  2654 
  2654     if opts.get('active') and branchrevs:
  2655     if opts.get('active') and branchrevs:
  2655         dagheads = repo.heads(start)
  2656         dagheads = repo.heads(start)
  2656         heads = [h for h in heads if h.node() in dagheads]
  2657         heads = [h for h in heads if h.node() in dagheads]