Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的两个分支之间的合并信息中有以下修订。
sh% svn mergeinfo --show-revs merged '^/trunk' '^/branches/myotherbranch' r139784 r139796 r139883 r139944 r139953 r139994 r140005
我想从这个列表中删除其中一个修订,以便我可以尝试再次进行合并。我该怎么做呢?
对该修订进行“反向合并”。如果您在执行此合并时实际上不想进行任何更改,则可以指定“仅记录”。例子:
svn merge -c -139994 --record-only
这应该会从合并历史记录中删除修订版 139994,而无需实际更改任何文件。如果您想实际撤消更改以便可以尝试再次应用它们,请不要使用“--record-only”。
-c 选项是您的标准“樱桃挑选”合并,除了负修订号意味着反向应用它。