##// 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:

r26420:2fc86d92 default
r37409:3198d5a2 default
Show More
test-issue612.t
34 lines | 617 B | text/troff | Tads3Lexer
Matt Mackall
urls: bulk-change BTS urls to new location
r26420 https://bz.mercurial-scm.org/612
Adrian Buehlmann
tests: unify test-issue*
r12195
$ hg init
$ mkdir src
$ echo a > src/a.c
$ hg ci -Ama
adding src/a.c
$ hg mv src source
Matt Harbison
tests: remove (glob) annotations that were only for '\' matches...
r35394 moving src/a.c to source/a.c
Adrian Buehlmann
tests: unify test-issue*
r12195
$ hg ci -Ammove
$ hg co -C 0
1 files updated, 0 files merged, 1 files removed, 0 files unresolved
$ echo new > src/a.c
$ echo compiled > src/a.o
$ hg ci -mupdate
created new head
$ hg status
? src/a.o
$ hg merge
merging src/a.c and source/a.c to source/a.c
Matt Mackall
merge: don't use unknown()...
r16094 0 files updated, 1 files merged, 0 files removed, 0 files unresolved
Adrian Buehlmann
tests: unify test-issue*
r12195 (branch merge, don't forget to commit)
$ hg status
M source/a.c
R src/a.c
Matt Mackall
merge: don't use unknown()...
r16094 ? src/a.o
Adrian Buehlmann
tests: unify test-issue*
r12195