Using Subversion, how can I cut from one file and paste to another preserving history

前端 未结 4 720
长情又很酷
长情又很酷 2021-02-04 07:20

The situation is that I\'ve spent some time messing around with some experimental code. I now want to move part of that code - about 500 lines - into another file, but I don\'t

4条回答
  •  粉色の甜心
    2021-02-04 07:58

    If you want to copy in a new file and delete the old file :

    svn mv
    

    If you want to duplicate in a new file :

    svn copy
    

    If both file already exists :

    # copy/paste with a text editor
    

    You can delete a file an keep its history with :

    svn del
    

    With SVN you cannot keep trace of the history of a merge of two file. You can merge it by hand and keep a trace in the commit message.

提交回复
热议问题