mercurial - 在 Mercurial 中提交单独的行?

标签 mercurial

我正在使用 Workbench,但如果有针对此或某些扩展的命令行解决方案,我也对此持开放态度。

我一直在每个环境的配置文件中工作( 在 .NET 中工作,所以请不要回答“更改您的配置文件”等 ),有时我需要对文件提交特定更新。我在 Mac 客户端的 Github 中看到了这种行为,但是 Mercurial/Workbench 中是否有类似的东西?例如
web.config

config value="123"
whatever blah blah

更改两行,例如
config value="42"
whatever

我的目标是只提交第 2 行( 不管 )而不提交第 1 行( config value="42" )

最佳答案

您可能需要 RecordExtension 它随 Mercurial 一起提供,但必须启用才能使用。

关于mercurial - 在 Mercurial 中提交单独的行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22965607/

相关文章:

windows - Mercurial 错误 "The filename, directory name, or volume label syntax is incorrect"

mercurial - 列出两个 hg 变更集之间不同的文件

Mercurial 工作流程 : why do I seem to commit everything twice?

mercurial - 为 IBM RAD 7.0 安装 HgEclipse

php - 我应该如何组织基于框架的项目的源代码控制?

mercurial - 中止 : could not find web. cacerts : C:\Program Files (x86)\Mercurial\cacert. pem

mercurial - 使用 "hg unshelve"就像使用 Git 取消存储一样

mercurial - 不能对 hg 的大文件扩展使用过滤器模式

Mercurial:改变阶段会产生什么后果?

version-control - 'pull' 是 Mercurial 源代码控制存储库中 'clone' 的同义词吗?