Comments
Patch
@@ -1125,9 +1125,14 @@
# good old version (parsing markers and checking them). We could add some
# logic to fall back to the old way in these cases.
obscache = repo.obsstore.obscache
- obscache.update(repo) # ensure it is up to date:
- isobs = obscache.get
-
+ if obscache.uptodate(repo) and repo.currenttransaction() is None:
+ hasnode = repo.obsstore.successors.__contains__
+ node = repo.changelog.node
+ def isobs(rev):
+ return hasnode(node(rev))
+ else:
+ obscache.update(repo) # ensure it is up to date:
+ isobs = obscache.get
return set(r for r in notpublic if isobs(r))
@cachefor('unstable')