Mercurial > hg
comparison tests/test-convert.t @ 32755:3a57bfd369d4
convert: correct the documentation about whitespace in branchmap branches
Might as well let the users know they can get rid of branch names with spaces.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 10 Jun 2017 02:20:14 -0400 |
parents | c5bf2e8ec18c |
children | 0823f0983eaa |
comparison
equal
deleted
inserted
replaced
32754:723de0ad3d8b | 32755:3a57bfd369d4 |
---|---|
123 | 123 |
124 original_branch_name new_branch_name | 124 original_branch_name new_branch_name |
125 | 125 |
126 where "original_branch_name" is the name of the branch in the source | 126 where "original_branch_name" is the name of the branch in the source |
127 repository, and "new_branch_name" is the name of the branch is the | 127 repository, and "new_branch_name" is the name of the branch is the |
128 destination repository. No whitespace is allowed in the branch names. This | 128 destination repository. No whitespace is allowed in the new branch name. |
129 can be used to (for instance) move code in one repository from "default" | 129 This can be used to (for instance) move code in one repository from |
130 to a named branch. | 130 "default" to a named branch. |
131 | 131 |
132 Mercurial Source | 132 Mercurial Source |
133 ################ | 133 ################ |
134 | 134 |
135 The Mercurial source recognizes the following configuration options, which | 135 The Mercurial source recognizes the following configuration options, which |
579 0 g | 579 0 g |
580 $ hg -R c log -r tip --template '{extras % "{extra}\n"}' | 580 $ hg -R c log -r tip --template '{extras % "{extra}\n"}' |
581 branch=default | 581 branch=default |
582 convert_revision=a3bc6100aa8ec03e00aaf271f1f50046fb432072 | 582 convert_revision=a3bc6100aa8ec03e00aaf271f1f50046fb432072 |
583 convert_source=mysource | 583 convert_source=mysource |
584 | |
585 $ cat > branchmap.txt << EOF | |
586 > old branch new_branch | |
587 > EOF | |
588 | |
589 $ hg -R a branch -q 'old branch' | |
590 $ echo gg > a/g | |
591 $ hg -R a ci -m 'branch name with spaces' | |
592 $ hg convert --branchmap branchmap.txt a d | |
593 initializing destination d repository | |
594 scanning source... | |
595 sorting... | |
596 converting... | |
597 6 a | |
598 5 b | |
599 4 c | |
600 3 d | |
601 2 e | |
602 1 g | |
603 0 branch name with spaces | |
604 | |
605 $ hg -R a branches | |
606 old branch 6:a24a66ade009 | |
607 default 5:a3bc6100aa8e (inactive) | |
608 $ hg -R d branches | |
609 new_branch 6:64ed208b732b | |
610 default 5:a3bc6100aa8e (inactive) |