Show More
@@ -22,7 +22,7 shelve". | |||
|
22 | 22 | """ |
|
23 | 23 | |
|
24 | 24 | from mercurial.i18n import _ |
|
25 | from mercurial.node import nullid, bin, hex | |
|
25 | from mercurial.node import nullid, nullrev, bin, hex | |
|
26 | 26 | from mercurial import changegroup, cmdutil, scmutil, phases |
|
27 | 27 | from mercurial import error, hg, mdiff, merge, patch, repair, util |
|
28 | 28 | from mercurial import templatefilters |
@@ -125,7 +125,7 def createcmd(ui, repo, pats, opts): | |||
|
125 | 125 | """Compute the heads of the public ancestors of a commit. |
|
126 | 126 | |
|
127 | 127 | Much faster than the revset heads(ancestors(ctx) - draft())""" |
|
128 | seen = set() | |
|
128 | seen = set([nullrev]) | |
|
129 | 129 | visit = util.deque() |
|
130 | 130 | visit.append(ctx) |
|
131 | 131 | while visit: |
General Comments 0
You need to be logged in to leave comments.
Login now