test-update-issue1456.t
45 lines
| 888 B
| text/troff
|
Tads3Lexer
/ tests / test-update-issue1456.t
|
r15442 | $ "$TESTDIR/hghave" execbit || exit 80 | ||
|
r12279 | $ rm -rf a | ||
$ hg init a | ||||
$ cd a | ||||
$ echo foo > foo | ||||
$ hg ci -qAm0 | ||||
|
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 | ||||
|
r12279 | $ hg co -q 0 | ||
|
r18895 | |||
|
r12279 | $ echo dirty > foo | ||
$ hg up -c | ||||
abort: uncommitted local changes | ||||
|
r12316 | [255] | ||
|
r12279 | $ hg up -q | ||
$ cat foo | ||||
dirty | ||||
$ hg st -A | ||||
M foo | ||||
|
r18895 | C todelete | ||
C toremove | ||||
|
r12279 | |||
Validate update of standalone execute bit change: | ||||
$ hg up -C 0 | ||||
|
r18895 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | ||
|
r12279 | $ chmod -x foo | ||
$ hg ci -m removeexec | ||||
nothing changed | ||||
|
r12316 | [1] | ||
|
r12279 | $ hg up -C 0 | ||
0 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ hg up | ||||
|
r18895 | 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||
|
r12279 | $ hg st | ||
|
r16913 | $ cd .. | ||