Losing SVN history on files during refactoring

后端 未结 3 718
隐瞒了意图╮
隐瞒了意图╮ 2021-02-02 00:20

During some refactoring, I\'m moving files around. Obviously SVN sees this as deleting the file and creating a new one since the IDE doesn\'t trigger an SVN rename/move operatio

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-02 00:56

    You could install the (free) visual studio add-in AnkhSVN. This will track your file-renames and you won't lose the history in subversion.

    File renames are tracked by the subversion client. If you rename files without using the subversion client (using windows explorer or visual studio solution explorer instead of TortoiseSVN or AnkhSVN), then subversion won't recognise the rename operation (only a delete and an add operation).

    BTW: using AnkhSVN gives you some other advantages, such as the displaying the subversion status of files directly in the solution explorer.

    Alternatively there's also VisualSVN, which is comparable to AnkhSVN, but is commercial.

提交回复
热议问题