inhibit: use 'repo.revs' instead of 'repo.set'
This skip the creation of a changectx object.
--- a/hgext/inhibit.py Tue Nov 17 22:43:17 2015 -0800
+++ b/hgext/inhibit.py Tue Nov 17 20:19:32 2015 -0800
@@ -129,13 +129,14 @@
if not _inhibitenabled(repo):
return
- newinhibit = list(repo.set('::%ln and obsolete()', nodes))
+ newinhibit = repo.revs('::%ln and obsolete()', nodes)
if newinhibit:
+ node = repo.changelog.node
lock = tr = None
try:
lock = repo.lock()
tr = repo.transaction('obsinhibit')
- repo._obsinhibit.update(c.node() for c in newinhibit)
+ repo._obsinhibit.update(node(r) for r in newinhibit)
_schedulewrite(tr, _filterpublic(repo, repo._obsinhibit))
repo.invalidatevolatilesets()
tr.close()