SVN how to export files from single commit?

匆匆过客 提交于 2020-01-23 08:12:20

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!