Mercurial > hg
comparison mercurial/bookmarks.py @ 17826:46e1a4e24225
obsolete: rename `anysuccessors` into `allsuccessors`
The "any" prefix looks like it returned a boolean. `allsuccessors` is more
accurate.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Fri, 19 Oct 2012 00:30:11 +0200 |
parents | 5023027240a1 |
children | 612db9d7e76a |
comparison
equal
deleted
inserted
replaced
17825:3cc06457f15e | 17826:46e1a4e24225 |
---|---|
264 plen = len(validdests) | 264 plen = len(validdests) |
265 succs = set(c.node() for c in validdests) | 265 succs = set(c.node() for c in validdests) |
266 for c in validdests: | 266 for c in validdests: |
267 if c.phase() > phases.public: | 267 if c.phase() > phases.public: |
268 # obsolescence marker does not apply to public changeset | 268 # obsolescence marker does not apply to public changeset |
269 succs.update(obsolete.anysuccessors(repo.obsstore, | 269 succs.update(obsolete.allsuccessors(repo.obsstore, |
270 c.node())) | 270 c.node())) |
271 validdests = set(repo.set('%ln::', succs)) | 271 validdests = set(repo.set('%ln::', succs)) |
272 validdests.remove(old) | 272 validdests.remove(old) |
273 return new in validdests | 273 return new in validdests |
274 else: | 274 else: |