问题
Is there any possibility to export files that had been changed or modified in single commit?
This would be usefull for deploying changes to web serwer after commiting them to repository (given that the server dont have svn to update from).
回答1:
Console, Windows-unfriendly
svn diff --summarize -r N-1:N
inside working copy produces a list (file per line with status indicator,spaces-separates) of affected in range files.
You have after only
- gawk to get $2
- pass result to xargs
In case of more one 1 revision in range one additional step added after gawk: sort -u
回答2:
commit your changes, when the window open, select the checked files and right click export to (destination)
回答3:
It should be possible to create a diff
of changes between two revisions using svn diff -r rev1:rev2
. More information here. You can then apply the diff file to your website.
回答4:
Poster wants to export a change set. Exporting Only changed files from subversion maintaining directory structure
回答5:
Easy. Show the log info. Select two commits you want to compare/export by clicking Ctrl. Right-click choose 'Compare Revisions'. Then a dialogue named 'Files changed' will show up. You will see a list of files have changed between the commits. Select all files, then right click to export. :p
来源:https://stackoverflow.com/questions/9482395/svn-how-to-export-files-from-single-commit