test-merge5.t
37 lines
| 853 B
| text/troff
|
Tads3Lexer
/ tests / test-merge5.t
Arseniy Alekseyev
|
r50516 | $ hg init repo | ||
$ cd repo | ||||
Pradeepkumar Gayam
|
r11978 | $ echo This is file a1 > a | ||
$ echo This is file b1 > b | ||||
$ hg add a b | ||||
Martin Geisler
|
r12155 | $ hg commit -m "commit #0" | ||
Pradeepkumar Gayam
|
r11978 | $ echo This is file b22 > b | ||
Martin Geisler
|
r12155 | $ hg commit -m "comment #1" | ||
Pradeepkumar Gayam
|
r11978 | $ hg update 0 | ||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ rm b | ||||
Martin Geisler
|
r12155 | $ hg commit -A -m "comment #2" | ||
Pradeepkumar Gayam
|
r11978 | removing b | ||
created new head | ||||
Brodie Rao
|
r12154 | $ hg update 1 | ||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
Matt Mackall
|
r17849 | $ rm b | ||
Pierre-Yves David
|
r28065 | $ hg update -c 2 | ||
Siddharth Agarwal
|
r19801 | abort: uncommitted changes | ||
Martin von Zweigbergk
|
r46444 | [20] | ||
Matt Mackall
|
r17849 | $ hg revert b | ||
Pierre-Yves David
|
r28065 | $ hg update -c 2 | ||
Brodie Rao
|
r12154 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | ||
Pradeepkumar Gayam
|
r11978 | $ mv a c | ||
Martin Geisler
|
r12155 | Should abort: | ||
Martin von Zweigbergk
|
r23026 | $ hg update 1 | ||
Siddharth Agarwal
|
r19799 | abort: uncommitted changes | ||
(commit or update --clean to discard changes) | ||||
Matt Mackall
|
r12316 | [255] | ||
Pradeepkumar Gayam
|
r11978 | $ mv c a | ||
Martin Geisler
|
r12155 | |||
Should succeed: | ||||
Martin von Zweigbergk
|
r23026 | $ hg update 1 | ||
Pradeepkumar Gayam
|
r11978 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||