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