SVN export just the changed files from tags

前端 未结 6 925
挽巷
挽巷 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 20:48

    This is my solution for TortoiseSVN:

    • Open the repo browser.
    • Right click tag1 and select "Mark for comparison"
    • Right click tag2 and select "Compare URLs"
    • Select All (Ctrl+A) in the list of files
    • Right click and "Export selection to..."
    • Enter a destination directory and press OK

    What ends up exported is all the files you need to write over the top of an existing export in order to update it (no messing around applying diffs). Useful, for example, for updating websites by FTP.

    The only caveat is that it obviously won't handle deleted files. Although it will at least tell you which files need to be deleted manually.

提交回复
热议问题