SVN Export Files Changed from Date or Version (Windows svn.exe)

I have a repository of sql scripts, some of which change for each of our monthly releases (different scripts change each time).

I am trying to automate the compilation of deployment packages and want to be able to export all the scripts that have changed since the last version, which has a known date and a known version.

SVN links for each release, SVN tags for assembly.

I have googled and know that svn diff --summarize -r {2012-05-01} svn://server/path/to/ > files.txt gives me a list of all the changes, but how can I use this list to exporting only these files using Windows CMD - all the examples I found are for Linux and use Linux commands.

Is there any other direct way to do this in SVN? (using SVN Export?)

+4
source share
1 answer
  • Use version number as initial version, not date: it is more bulletproof
  • Use a range of versions, even if the final revision is HEAD: more bulletproof

    • You can have bash even on windows and use bash scripts
    • You can install Ruby and use a Ruby script (or compile Ruby for exe)

Finally

  • You can install TortoiseSVN and prepare the tree in the GUI manually.

or

  • Write your own diff output parser (PoserShell will do this)

>svn diff --summarize -r 26:34 http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/

A http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/Dr%C3%A6p%C3%A6r.ma%C3%BEar.sv%C3%A6nskan.man.eller.smalensk%C3%A6n.txt

M http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/Hello.en.txt

M http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/Hello.fr.txt

M http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk/Hello.de.txt

M http://mayorat.ursinecorner.ru:8088/svn/Hello/trunk

(copy all the files that have A | M in the fist of a char string, or pre-grep all the lines that have a trailing slash after the last line of the path / base line in my example /)

+1
source

Source: https://habr.com/ru/post/1415342/


All Articles