Show More
@@ -181,8 +181,8 b' def convert(ui, src, dest=None, revmapfi' | |||||
181 |
|
181 | |||
182 | where "original_branch_name" is the name of the branch in the |
|
182 | where "original_branch_name" is the name of the branch in the | |
183 | source repository, and "new_branch_name" is the name of the branch |
|
183 | source repository, and "new_branch_name" is the name of the branch | |
184 | is the destination repository. No whitespace is allowed in the |
|
184 | is the destination repository. No whitespace is allowed in the new | |
185 |
branch name |
|
185 | branch name. This can be used to (for instance) move code in one | |
186 | repository from "default" to a named branch. |
|
186 | repository from "default" to a named branch. | |
187 |
|
187 | |||
188 | Mercurial Source |
|
188 | Mercurial Source |
@@ -125,9 +125,9 b'' | |||||
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 name |
|
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 |
|
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 | ################ | |
@@ -581,3 +581,30 b' test specifying a sourcename' | |||||
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) |
General Comments 0
You need to be logged in to leave comments.
Login now