[英]Converting a Mercurial branch into the same repository, but different branch
[英]Mercurial convert with --branchmap : converting branch names containing spaces
我正在使用hg convert
來清理一些hg存儲庫中的混亂情況。 在此過程中,我使用--branchmap
選項重命名某些分支。
問題是,名稱( ab
)中帶有空格的分支不會被重命名。 我嘗試將它們括在引號中(似乎與--filemap
一起--filemap
)或使用反斜杠轉義,但沒有結果。
如何使用名稱重命名分支?
只需執行任何操作即可轉義原始分支名稱。 經過新鮮水銀(THG)5.0.2測試
原始回購
>hg branches
My Branch 4:a44473442f4c
Other Branch 3:139a43f9edc4
default 0:356bf10ef7f0 (inactive)
分支圖
My Branch My
Other Branch Other
轉換后的回購
>hg branches
My 4:1f22df1c3744
Other 3:6a2a18b56a5c
default 0:356bf10ef7f0 (inactive)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.