# HG changeset patch # User Brendan Cully # Date 1182387191 25200 # Node ID 52259d5fb76d0a5ffcf5797e7183ec9a426ebd9f # Parent 8e503fa54d2d49ba265b3c5924b18d8df6c3768c Small fixes for 8e503fa54d2d (hg heads branch) diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1232,8 +1232,7 @@ def heads(ui, repo, *branchrevs, **opts) heads = repo.heads(start) else: heads = [] - visitedset = set() - displayer = cmdutil.show_changeset(ui, repo, opts) + visitedset = util.set() for branchrev in branchrevs: branch = repo.changectx(branchrev).branch() if branch in visitedset: diff --git a/tests/test-bheads.out b/tests/test-bheads.out --- a/tests/test-bheads.out +++ b/tests/test-bheads.out @@ -234,7 +234,7 @@ date: Thu Jan 01 00:00:07 1970 +0 summary: Adding c branch ======= -No changes on branch c (the branch of revision .) are reachable from revision 3 +no changes on branch c containing . are reachable from 3 1 ------- changeset: 7:9fb091bb9835 @@ -273,7 +273,7 @@ summary: Merging b branch head 2 and 0 ------- -No changes on branch b (the branch of revision .) are reachable from revision 7 +no changes on branch b containing . are reachable from 7 1 ======= 0 files updated, 0 files merged, 2 files removed, 0 files unresolved