简体   繁体   English

颠覆,从重新整合的合并中删除 MergeInfo 是否安全

[英]Subversion, is it safe to remove MergeInfo from a reintegrate merge

Being that the svn boook recommends deleting a branch after merging it into the trunk with the reintegrate option, is it safe to revert the mergeinfo property changes for that branch that are added to the trunk?由于 svn 书建议在使用 reintegrate 选项将分支合并到主干后删除一个分支,恢复添加到主干的该分支的 mergeinfo 属性更改是否安全?

Our trunk now has many mergeinfo entries for old branches that no longer exist.我们的主干现在有许多不再存在的旧分支的 mergeinfo 条目。

I do not understand where these entries would ever be used at this point.我不明白此时这些条目会用在哪里。

It'll be 'safe', in that you won't break the repository or your working copies or any future functionality.它将是“安全的”,因为您不会破坏存储库或您的工作副本或任何未来的功能。

But I like the idea of keeping them, simply because you could in theory go and work out who actually did a particular piece of work and what its real history was (in theory, if you cared enough).但我喜欢保留它们的想法,仅仅是因为理论上你可以 go 并找出谁真正做了某件特定的工作以及它的真实历史是什么(理论上,如果你足够关心的话)。 If you delete the merge info, you no-longer have any hint where the associated code came from.如果您删除合并信息,您将不再有相关代码来自何处的任何提示。

However, it's a weak argument for keeping this info if it's getting out of hand and causing issues, or even if it's just annoying you.但是,如果它失控并导致问题,或者即使它只是让您烦恼,那么保留此信息的论据就很站不住脚了。

Perhaps you could keep it for a couple of revisions then get rid of 'old' ones.也许您可以保留它进行几次修订,然后摆脱“旧”的。 That way, a blame will turn up the merge revision, which will also allow you to find the associated merge info as it was then.这样,一个 blame 将出现合并修订,这也将允许您找到相关的合并信息,因为它是当时的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM