mirror of
https://github.com/facebook/sapling.git
synced 2024-12-29 08:02:24 +03:00
0562c1220f
Summary: This makes tests depend less on revision numbers. Reviewed By: DurhamG Differential Revision: D22468669 fbshipit-source-id: 74a06930faa3e6ee9d246ecc718c2a3740f57a54
82 lines
1.6 KiB
Perl
82 lines
1.6 KiB
Perl
#chg-compatible
|
|
|
|
$ 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
|
|
commit: 91ebc10ed028
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Added side2
|
|
|
|
commit: b932d7dbb1e1
|
|
parent: c2eda428b523
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Added side1
|
|
|
|
commit: 71a760306caf
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Added main
|
|
|
|
commit: c2eda428b523
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Added a
|
|
|
|
|
|
$ hg heads
|
|
commit: 91ebc10ed028
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Added side2
|
|
|
|
commit: 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
|
|
branchmerge: False, force: True, partial: False
|
|
ancestor: 91ebc10ed028+, local: 91ebc10ed028+, remote: 71a760306caf
|
|
side1: other deleted -> r
|
|
removing side1
|
|
side2: other deleted -> r
|
|
removing side2
|
|
main: remote created -> g
|
|
getting main
|
|
1 files updated, 0 files merged, 2 files removed, 0 files unresolved
|
|
|
|
$ ls
|
|
a
|
|
main
|
|
|