Sta*_*tan 6 mercurial branch tortoisehg
是否可以在TortoiseHG中将'default'重命名为'production'?
您无法在Mercurial(或TortoiseHg)中重命名分支.你要做的是启动一个新的分支,production并将其作为当前default分支的基础.
您可以在TortoiseHg 2.0中执行此操作

这将创建一个名为的新分支production.旧default分支将保留,因此您可以将新功能放在那里,然后production在它们稳定时将它们合并.
您不能直接从Tortoise2.0+ 设置中执行此操作,而是通过命令行执行此操作hg。
正如hgbook中记录的:
Mercurial 允许您为分支分配持久名称。
始终存在一个名为default 的分支。即使在您自己开始命名分支之前,如果您查找默认分支,也可以找到它们的踪迹。要开始使用命名分支,请使用 hg Branches 命令
$ hg branch production
marked working directory as branch production
$ hg branch
production
Run Code Online (Sandbox Code Playgroud)
然后检查该更改是否反映在 TortoiseHg 中