##// END OF EJS Templates
manifestmerge: handle workdir removed, remote removed with flags...
manifestmerge: handle workdir removed, remote removed with flags This can happen when a file with flags is removed or deleted in the working directory and also not present in m2. The obvious solution is to add a __delitem__ override to manifestdict that removes the file from flags if necessary, but that has a significant performance cost in some cases, e.g. hg status --rev rev1 --rev rev2 <file>.

File last commit:

r18895:ed676ed6 default
r18895:ed676ed6 default
Show More
test-update-issue1456.t
45 lines | 888 B | text/troff | Tads3Lexer
/ tests / test-update-issue1456.t
Mads Kiilerich
tests: use 'hghave execbit' for tests that manipulate x bit in file system
r15442 $ "$TESTDIR/hghave" execbit || exit 80
Adrian Buehlmann
combine tests
r12279 $ rm -rf a
$ hg init a
$ cd a
$ echo foo > foo
$ hg ci -qAm0
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895 $ echo toremove > toremove
$ echo todelete > todelete
$ chmod +x foo toremove todelete
$ hg ci -qAm1
Test that local removed/deleted, remote removed works with flags
$ hg rm toremove
$ rm todelete
Adrian Buehlmann
combine tests
r12279 $ hg co -q 0
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895
Adrian Buehlmann
combine tests
r12279 $ echo dirty > foo
$ hg up -c
abort: uncommitted local changes
Matt Mackall
tests: add exit codes to unified tests
r12316 [255]
Adrian Buehlmann
combine tests
r12279 $ hg up -q
$ cat foo
dirty
$ hg st -A
M foo
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895 C todelete
C toremove
Adrian Buehlmann
combine tests
r12279
Validate update of standalone execute bit change:
$ hg up -C 0
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
Adrian Buehlmann
combine tests
r12279 $ chmod -x foo
$ hg ci -m removeexec
nothing changed
Matt Mackall
tests: add exit codes to unified tests
r12316 [1]
Adrian Buehlmann
combine tests
r12279 $ hg up -C 0
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ hg up
Siddharth Agarwal
manifestmerge: handle workdir removed, remote removed with flags...
r18895 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
Adrian Buehlmann
combine tests
r12279 $ hg st
Mads Kiilerich
tests: add missing trailing 'cd ..'...
r16913 $ cd ..