mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 17:27:53 +03:00
5fbc4a50f1
This speeds up the in-memory version of debugbuilddag that I'm working on considerably for the case where we want to build just a 00changelog.i (for discovery tests, for instance). There are a couple of test changes because node ids in tests have changed. The changes to the patch names in test-mq-qdelete.t were required because they could collide with nodeid abbreviations and newly actually do (patch "c" collides with id "cafe..." for patch "b").
63 lines
1.5 KiB
Perl
63 lines
1.5 KiB
Perl
Initial setup.
|
|
|
|
$ hg init repo
|
|
$ cd repo
|
|
$ touch thefile
|
|
$ hg ci -A -m 'Initial commit.'
|
|
adding thefile
|
|
|
|
Create a tag.
|
|
|
|
$ hg tag branchortag
|
|
|
|
Create a branch with the same name as the tag.
|
|
|
|
$ hg branch branchortag
|
|
marked working directory as branch branchortag
|
|
$ hg ci -m 'Create a branch with the same name as a tag.'
|
|
|
|
This is what we have:
|
|
|
|
$ hg log
|
|
changeset: 2:10519b3f489a
|
|
branch: branchortag
|
|
tag: tip
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Create a branch with the same name as a tag.
|
|
|
|
changeset: 1:2635c45ca99b
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Added tag branchortag for changeset f57387372b5d
|
|
|
|
changeset: 0:f57387372b5d
|
|
tag: branchortag
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Initial commit.
|
|
|
|
Update to the tag:
|
|
|
|
$ hg up 'tag(branchortag)'
|
|
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
|
|
$ hg parents
|
|
changeset: 0:f57387372b5d
|
|
tag: branchortag
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Initial commit.
|
|
|
|
Updating to the branch:
|
|
|
|
$ hg up 'branch(branchortag)'
|
|
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
|
|
$ hg parents
|
|
changeset: 2:10519b3f489a
|
|
branch: branchortag
|
|
tag: tip
|
|
user: test
|
|
date: Thu Jan 01 00:00:00 1970 +0000
|
|
summary: Create a branch with the same name as a tag.
|
|
|