equal
deleted
inserted
replaced
361 |
361 |
362 def newheads(repo, heads, roots): |
362 def newheads(repo, heads, roots): |
363 """compute new head of a subset minus another |
363 """compute new head of a subset minus another |
364 |
364 |
365 * `heads`: define the first subset |
365 * `heads`: define the first subset |
366 * `roots`: define the second we substract to the first""" |
366 * `roots`: define the second we subtract from the first""" |
367 revset = repo.set('heads((%ln + parents(%ln)) - (%ln::%ln))', |
367 revset = repo.set('heads((%ln + parents(%ln)) - (%ln::%ln))', |
368 heads, roots, roots, heads) |
368 heads, roots, roots, heads) |
369 return [c.node() for c in revset] |
369 return [c.node() for c in revset] |
370 |
370 |
371 |
371 |