##// END OF EJS Templates
bundles: do not overwrite existing backup bundles (BC)...
bundles: do not overwrite existing backup bundles (BC) Previously, a backup bundle could overwrite an existing bundle and cause user data loss. For instance, if you have A<-B<-C and strip B, it produces backup bundle B-backup.hg. If you then hg pull -r B B-backup.hg and strip it again, it overwrites the existing B-backup.hg and C is lost. The fix is to add a hash of all the nodes inside that bundle to the filename. Fixed up existing tests and added a new test in test-strip.t

File last commit:

r16094:0776a6ca default
r23835:aa4a1672 default
Show More
test-issue612.t
34 lines | 633 B | text/troff | Tads3Lexer
Matt Mackall
tests: fix a bunch of pointless #s in unified tests
r12328 http://mercurial.selenic.com/bts/issue612
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
Mads Kiilerich
tests: make (glob) on windows accept \ instead of /...
r15447 moving src/a.c to source/a.c (glob)
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