Mercurial > hg > mercurial-source
diff mercurial/revset.py @ 23741:07a6faf939dc
revset-filelog: handle hidden linkrev for file missing for head (issue4490)
The fix for linkrev pointing to hidden revision was crashing when the file was
missing from head's manifest. We now properly handle this case.
(yes I feel silly)
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 06 Jan 2015 11:23:38 -0800 |
parents | d944492445fa |
children | 3a4d8a6ce432 |
line wrap: on
line diff
--- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -837,8 +837,9 @@ if lowesthead is None: lowesthead = {} for h in repo.heads(): - fnode = repo[h].manifest()[f] - lowesthead[fl.rev(fnode)] = h + fnode = repo[h].manifest().get(f) + if fnode is not None: + lowesthead[fl.rev(fnode)] = h headrev = lowesthead.get(fr) if headrev is None: # content is nowhere unfiltered