SVN, how to export files from one commit?

Is it possible to export files that have been changed or changed in a single commit?

This would be useful for deploying changes to the web server after they are submitted to the repository (assuming the server does not have svn to update).

+4
source share
5 answers

Console, Windows-Unfriendly

svn diff --summarize -r N-1:N inside the working copy, a list is created (a file in a line with a status indicator, space separation) of the files affected in the file range.

You only have

  • gawk to get $ 2
  • pass the result to xargs

In the case of more than one revision in the range, one more step is added after gawk: sort -u

+1
source

commit your changes when the window opens, select the checked files and right-click on export to (destination)

0
source

It should be possible to create diff changes between the two versions using svn diff -r rev1:rev2 . More info here. You can then apply the diff file to your website.

0
source

The poster wants to export a set of changes. Export only modified files from subversion directory structure

0
source

Easily. Show log information. Select the two commits you want to compare / export by pressing Ctrl. Right-click Compare Versions. Then the "Files changed" dialog appears. You will see that the list of files has changed between commits. Select all files, then right-click to export .: P

0
source

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


All Articles