# HG changeset patch # User Pierre-Yves David # Date 1334934758 -7200 # Node ID 50039b9b535e87526b7b932a8acd373cb475c9fc # Parent 9799d0aa53c82e965ccf35aca4aad83a2f6fc56b 2.2 compat: nodemap.get take a single argument now. diff -r 9799d0aa53c8 -r 50039b9b535e hgext/obsolete.py --- a/hgext/obsolete.py Mon Apr 16 10:51:40 2012 +0200 +++ b/hgext/obsolete.py Fri Apr 20 17:12:38 2012 +0200 @@ -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