我刚刚修改了一个Hg repos,并且一直在进行重要的本地提交(主要版本更改)。
与此同时,行李箱略有上升;几个提交,但微不足道的变化。
管理将此分支合并回主干的最简单方法是什么?
考虑到我的“分支”有重大变化,最好是“区分”最新的主干,我将“分支”的主干版本然后将相同的功能更改重新发送到我的v2? - 如果是这样,我怎么知道这个版本是什么?
由于
答案 0 :(得分:1)
从您的评论中听起来问题是文件重命名(还没有通过Mercurial完成)还包含小的更改?您可以使用值小于100的hg addremove -s
来检测这些
addremove [OPTION]... [FILE]...
Add all new files and remove all missing files from the repository.
New files are ignored if they match any of the patterns in .hgignore. As
with add, these changes take effect at the next commit.
Use the -s option to detect renamed files. With a parameter > 0,
this compares every removed file with every added file and records
those similar enough as renames. This option takes a percentage
between 0 (disabled) and 100 (files must be identical) as its
parameter. Detecting renamed files this way can be expensive.
options:
-s, --similarity guess renamed files by similarity (0<=s<=100)
-I, --include include names matching the given patterns
-X, --exclude exclude names matching the given patterns
-n, --dry-run do not perform actions, just print output
TortoiseHg还提供了一种通过Guess Renames
菜单
答案 1 :(得分:0)
也许我错过了什么,但看起来很容易:
没有异国情调......那就是多变的! 如果你喜欢干净的历史,你可以做一个rebase而不是合并......