Friday, July 29, 2011

The definitive svn export (copy) only modified files in Linux!

I've finally found the solution to export -copy- svn modified/add files.
I was searching for something that was very simple to do it, but I couldn't find anything!
Well, finally I created this simple command line solution:

$ svn status | cut -c9-99999 | cpio -pvdmu [path to copy]

How to use it
  1. Go to svn working directory
  2. Write and execute the comand
Warning
It does work before commit action only.

2 comments:

Felipe said...

what about exporting all files (and directories!) that have changed from revision 10 to revision 99?

Cristian Riffo Huez said...

Try this: http://www.wandisco.com/svnforum/threads/31058-How-do-I-export-only-changed-files?s=d52d22d23a03c27d0f83c8932693bc34&p=115704&viewfull=1#post115704