Submitter | Pierre-Yves David |
---|---|
Date | Sept. 23, 2014, 7:28 p.m. |
Message ID | <57f0bf2b4380fa517321.1411500506@marginatus.alto.octopoid.net> |
Download | mbox | patch |
Permalink | /patch/5920/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py --- a/mercurial/obsolete.py +++ b/mercurial/obsolete.py @@ -850,11 +850,11 @@ def getrevs(repo, name): """Return the set of revision that belong to the <name> set Such access may compute the set and cache it for future use""" repo = repo.unfiltered() if not repo.obsstore: - return () + return frozenset() if name not in repo.obsstore.caches: repo.obsstore.caches[name] = cachefuncs[name](repo) return repo.obsstore.caches[name] # To be simple we need to invalidate obsolescence cache when: