##// END OF EJS Templates
context: stop catching RepoLookupError from namespace.singlenode()...
context: stop catching RepoLookupError from namespace.singlenode() As pointed out by Yuya, the RepoLookupError was there for catching errors from repo.branchtip(). However, since 885c0290f7d5 (localrepo: add ignoremissing parameter to branchtip, 2014-10-16), that should no longer happen. I think it should now be an error if a namespace raises a RepoLookupError, so we propagate the exception up and and make it easy to fix, rather than trying to interpret the changeid as nodeid prefix and raise a general "unknown revision '...'" error. I also don't think we should catch FilteredLookupError and LookupError from the changelog.rev() call, for the same reason as above: If a namespace returns a node that doesn't exist, we should provide a more helpful exception than "unknown revision '...'". Differential Revision: https://phab.mercurial-scm.org/D3145

File last commit:

r23331:3b1b8f25 default
r37409:3198d5a2 default
Show More
test-ancestor.py.out
18 lines | 686 B | text/plain | TextLexer
/ tests / test-ancestor.py.out
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [], stoprev = 0, inclusive = False
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: []
iteration: []
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [11, 13], stoprev = 0, inclusive = False
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [7, 8, 3, 4, 1, 0]
iteration: [3, 7, 8, 1, 4, 0, 2]
Pierre-Yves David
test-ancestor: add a test for `ancestor` with ancestry within the initset...
r22355 % lazy ancestor set for [1, 3], stoprev = 0, inclusive = False
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [1, 0]
iteration: [0, 1]
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [11, 13], stoprev = 0, inclusive = True
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [11, 13, 7, 8, 3, 4, 1, 0]
iteration: [11, 13, 3, 7, 8, 1, 4, 0, 2]
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [11, 13], stoprev = 6, inclusive = False
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [7, 8]
iteration: [7, 8]
Siddharth Agarwal
ancestor: add lazy membership testing to lazyancestors...
r18091 % lazy ancestor set for [11, 13], stoprev = 6, inclusive = True
Siddharth Agarwal
test-ancestor: test iteration for lazyancestors...
r23329 membership: [11, 13, 7, 8]
iteration: [11, 13, 7, 8]