Show More
@@ -219,8 +219,8 b' def _aborttransaction(repo):' | |||||
219 | def createcmd(ui, repo, pats, opts): |
|
219 | def createcmd(ui, repo, pats, opts): | |
220 | """subcommand that creates a new shelve""" |
|
220 | """subcommand that creates a new shelve""" | |
221 |
|
221 | |||
222 |
def |
|
222 | def mutableancestors(ctx): | |
223 | """Compute the public ancestors of a commit. |
|
223 | """return all mutable ancestors for ctx (included) | |
224 |
|
224 | |||
225 | Much faster than the revset ancestors(ctx) & draft()""" |
|
225 | Much faster than the revset ancestors(ctx) & draft()""" | |
226 | seen = set([nullrev]) |
|
226 | seen = set([nullrev]) | |
@@ -326,7 +326,7 b' def createcmd(ui, repo, pats, opts):' | |||||
326 | ui.status(_("nothing changed\n")) |
|
326 | ui.status(_("nothing changed\n")) | |
327 | return 1 |
|
327 | return 1 | |
328 |
|
328 | |||
329 |
bases = list( |
|
329 | bases = list(mutableancestors(repo[node])) | |
330 | shelvedfile(repo, name, 'hg').writebundle(bases, node) |
|
330 | shelvedfile(repo, name, 'hg').writebundle(bases, node) | |
331 | cmdutil.export(repo, [node], |
|
331 | cmdutil.export(repo, [node], | |
332 | fp=shelvedfile(repo, name, 'patch').opener('wb'), |
|
332 | fp=shelvedfile(repo, name, 'patch').opener('wb'), |
General Comments 0
You need to be logged in to leave comments.
Login now