How to check out / download only files that have changed in Subversion?

ldevore's picture
ldevore asked on November 18, 2010 - 2:55pm | Replies (3).

We have a need to check out or download a list of files changed since a given date. We need to be able to apply only those files to production - in part to preserve date and time stamps and to avoid refreshing 10,000 files to production every time a bug fix is released.

3 Answers

Alok's picture
Alok replied on November 24, 2010 - 2:50am.


Can you please let us know which tool you are using for your project?

Yes, We can find the list of files modified in a branch from a particular date.

In Subversion(SVN), the command is

"svn diff -r {"date"} Branch_path --summarize"

Note: date should be in this format "yyyy-mm-dd"

I hope this will help you to resolve your problem.

Saqib Khan's picture
Saqib Khan replied on November 25, 2010 - 2:52pm.


You can also check using 'Show Log' using Windows by filtering the required date.

jwschaeff's picture
jwschaeff replied on December 28, 2010 - 5:55pm.

One concern would be to avoid using dates and be more specific with the SVN ID. Dates can leave holes in files delivered. Using the same diff command below, substitute {<last SVN ID Delivered> : HEAD } and note the SVN ID in the output, this way you ensure you leave no gaps.

An example using last date delivered by SVN ID:
%> svn diff -r 11357:HEAD --summarize <URL>

Once you've got that list I'm guessing you'd want to export the resulting files using the directory their located in (svn won't export at the file level), and then tarring/zipping up the files.

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.