开发者

Using Subversion and TortoiseSVN, how do you clear your local action history?

  1. I merge changes of a file from a branch into the trunk-branch.
  2. I wrongly resolved a conflict, and want to start from scratch, so I revert the trunk-file to it's original state.
  3. I redo step 1, but nothing happens. In the merge window, I check the log, all branches I want to merge into this file are grayed out. This is TortoiseSVN's way of telling me "You already merged these changes into this file, no need to do it 开发者_JS百科a 2nd time."

Since nothing was comitted, this has to be client-side issue. I tried a cleanup, but it didn't help.


Found it, the merge information is kept in the parent directory's property svn:mergeinfo. In Windows XP you can access this using the directory's context menu -> Properties -> Subversion. I only reverted the file, so TortoiseSVN did not clear this info.


It seems you should mark the file as conflict resolved. If it doesn't help or you are not available to do this, try to remove the sorces and checkout them back from svn.


You can review uncommitted local changes with the "Check for modifications" menu option and you can discard them with the "Revert" one. Actually, port information is stored as a bunch of regular svn:mergeinfo properties and that's what Subversion uses to decide whether a revision has been merged or not.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜