Commits

Pierre-Yves David  committed 50039b9

2.2 compat: nodemap.get take a single argument now.

  • Participants
  • Parent commits 9799d0a
  • Branches default

Comments (0)

Files changed (1)

File hgext/obsolete.py

     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
     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