##// END OF EJS Templates
revert: handle subrepos missing in the given --rev...
revert: handle subrepos missing in the given --rev The list of subrepos to revert is currently based on the given --rev, so there is currently no way for this to fail. Using the --rev context is wrong though, because if the subrepo doesn't exist in --rev, it is skipped, so it won't be changed. This change makes it so that the revert aborts, which is what happens if a plain file is reverted to -1. Finding matches based on --rev is also inconsistent with evaluating files against the working directory (5b85a5bc5bbb). This change is made now, so as to not cause breakage when the context is switched in an upcoming patch.

File last commit:

r16913:f2719b38 default
r24463:06d199e6 default
Show More
test-1102.t
17 lines | 354 B | text/troff | Tads3Lexer
Martin Geisler
tests: unify test-1102
r11847 $ rm -rf a
$ hg init a
$ cd a
$ echo a > a
$ hg ci -Am0
adding a
$ hg tag t1 # 1
$ hg tag --remove t1 # 2
$ hg co 1
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
Kevin Bullock
tag: abort if not at a branch head (issue2552)...
r13135 $ hg tag -f -r0 t1
Martin Geisler
tests: unify test-1102
r11847 $ hg tags
tip 3:a49829c4fc11
t1 0:f7b1eb17ad24
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913 $ cd ..