Mercurial > hg
comparison mercurial/graphmod.py @ 23006:bb1bd9ee323d
dagwalker: drop a useless intermediate variable
The variable used to contain revs.set() but as the `.set()` has been removed
it is now useless.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 08 Oct 2014 02:43:51 -0700 |
parents | 890e874cacb6 |
children | f7ce0837eefd |
comparison
equal
deleted
inserted
replaced
23005:9bfe68357c01 | 23006:bb1bd9ee323d |
---|---|
35 | 35 |
36 cl = repo.changelog | 36 cl = repo.changelog |
37 lowestrev = revs.min() | 37 lowestrev = revs.min() |
38 gpcache = {} | 38 gpcache = {} |
39 | 39 |
40 knownrevs = revs | |
41 for rev in revs: | 40 for rev in revs: |
42 ctx = repo[rev] | 41 ctx = repo[rev] |
43 parents = sorted(set([p.rev() for p in ctx.parents() | 42 parents = sorted(set([p.rev() for p in ctx.parents() |
44 if p.rev() in knownrevs])) | 43 if p.rev() in revs])) |
45 mpars = [p.rev() for p in ctx.parents() if | 44 mpars = [p.rev() for p in ctx.parents() if |
46 p.rev() != nullrev and p.rev() not in parents] | 45 p.rev() != nullrev and p.rev() not in parents] |
47 | 46 |
48 for mpar in mpars: | 47 for mpar in mpars: |
49 gp = gpcache.get(mpar) | 48 gp = gpcache.get(mpar) |