SVN export just the changed files from tags

前端 未结 6 914
挽巷
挽巷 2021-02-09 20:23

Does anyone know how to export only the changed files from two tags using svn?

Lets say I have tag 1.0 and then later fix bugs in the trunk. Next I am ready for a new

6条回答
  •  孤独总比滥情好
    2021-02-09 21:01

    svn diff --summarize url/to/tag1.0 url/to/tag1.1

    will give you a list of files that changed between those two tags. You should be able to parse that list in a script and export each file individually with either

    svn export url/to/file filepath

    or

    svn cat url/to/file > file

    If you're using TortoiseSVN:

    • open the repository browser, browse to tag1.0, right-click, choose "mark for comparison"
    • browse to tag1.1, right-click, choose "compare urls"
    • in the file diff dialog, select all files/folders that changed between the tags (Ctrl+A)
    • right-click, choose "export to..."

提交回复
热议问题