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
It does work before commit action only.


Felipe said...

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

Cristian Riffo Huez said...

Try this: