2019-12-10 02:24:31 +03:00
|
|
|
#chg-compatible
|
|
|
|
|
2010-09-14 14:20:51 +04:00
|
|
|
$ hg init
|
|
|
|
|
|
|
|
$ touch a
|
|
|
|
$ hg add a
|
|
|
|
$ hg commit -m "Added a"
|
|
|
|
|
|
|
|
$ touch main
|
|
|
|
$ hg add main
|
|
|
|
$ hg commit -m "Added main"
|
|
|
|
$ hg checkout 0
|
|
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
|
|
|
|
|
|
'main' should be gone:
|
|
|
|
|
|
|
|
$ ls
|
|
|
|
a
|
|
|
|
|
|
|
|
$ touch side1
|
|
|
|
$ hg add side1
|
|
|
|
$ hg commit -m "Added side1"
|
|
|
|
$ touch side2
|
|
|
|
$ hg add side2
|
|
|
|
$ hg commit -m "Added side2"
|
|
|
|
|
|
|
|
$ hg log
|
|
|
|
changeset: 3:91ebc10ed028
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: Added side2
|
|
|
|
|
|
|
|
changeset: 2:b932d7dbb1e1
|
|
|
|
parent: 0:c2eda428b523
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: Added side1
|
|
|
|
|
|
|
|
changeset: 1:71a760306caf
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: Added main
|
|
|
|
|
|
|
|
changeset: 0:c2eda428b523
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: Added a
|
|
|
|
|
|
|
|
|
|
|
|
$ hg heads
|
|
|
|
changeset: 3:91ebc10ed028
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: Added side2
|
|
|
|
|
|
|
|
changeset: 1:71a760306caf
|
|
|
|
user: test
|
|
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
|
|
summary: Added main
|
|
|
|
|
|
|
|
$ ls
|
|
|
|
a
|
|
|
|
side1
|
|
|
|
side2
|
|
|
|
|
|
|
|
$ hg update --debug -C 1
|
|
|
|
resolving manifests
|
2013-02-08 19:23:23 +04:00
|
|
|
branchmerge: False, force: True, partial: False
|
2011-12-09 20:34:53 +04:00
|
|
|
ancestor: 91ebc10ed028+, local: 91ebc10ed028+, remote: 71a760306caf
|
2010-09-14 14:20:51 +04:00
|
|
|
side1: other deleted -> r
|
|
|
|
removing side1
|
2014-04-22 04:10:25 +04:00
|
|
|
side2: other deleted -> r
|
2010-09-14 14:20:51 +04:00
|
|
|
removing side2
|
2014-04-22 04:10:25 +04:00
|
|
|
main: remote created -> g
|
2010-09-14 14:20:51 +04:00
|
|
|
getting main
|
|
|
|
1 files updated, 0 files merged, 2 files removed, 0 files unresolved
|
|
|
|
|
|
|
|
$ ls
|
|
|
|
a
|
|
|
|
main
|
|
|
|
|