Mercurial > hg > evolve
changeset 204:50039b9b535e
2.2 compat: nodemap.get take a single argument now.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Fri, 20 Apr 2012 17:12:38 +0200 |
parents | 9799d0aa53c8 |
children | 7ba30bd95a88 |
files | hgext/obsolete.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/obsolete.py +++ b/hgext/obsolete.py @@ -157,7 +157,7 @@ nm = repo.changelog.nodemap for r in s: for p in repo._obssubrels.get(repo[r].node(), ()): - pr = nm.get(p, None) + pr = nm.get(p) if pr is not None: cs.add(pr) return cs @@ -181,7 +181,7 @@ nm = repo.changelog.nodemap cs = set() for p in seen: - pr = nm.get(p, None) + pr = nm.get(p) if pr is not None: cs.add(pr) return cs