mercurial/phases.py
changeset 17425 e95ec38f86b0
parent 17424 e7cfe3587ea4
child 17469 fb72eec7efd8
equal deleted inserted replaced
17424:e7cfe3587ea4 17425:e95ec38f86b0
   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