How to get 'changeset' recursively in SVN?

Saqib Khan's picture
Saqib Khan asked on November 29, 2010 - 6:07am | Replies (2).

I want to get changeset recursively but each time get all files/folders that are not required in SVN.

Here is the scenario for better understanding.

There are total 10 folders in an application. There are 3 folders(like X,Y,Z) present at different hierarchy in the same application and each folder contains 20 files. Names of few files are same in these 3 folders. The developer change 2 any files from 3 different folders. By applying the changeset, SVN shows that mentioned 6 files along with the path are changed. [i][Till here it is good for us].[/i]

When we try to get these 6 files with the same hierarchy, there is no such option to get [i]ONLY[/i] these 6 files rather during Export(in windows platform), the mentioned options like Fully recursive, only file children, etc does not work for us.

So, can anyone let us know how to get these 6 changed files in the same hierarchy?


2 Answers

tuffsn's picture
tuffsn replied on January 13, 2011 - 1:29pm.

In a batch file parse the 'svn log -r <rev> -q -v <url>' command (looking for lines starting ' A' or ' M') using the FOR command, then do a 'svn export <full url> <dest>' for each file.

Regards, Neil.

Saqib Khan's picture
Saqib Khan replied on January 26, 2011 - 2:17am.

Thanks for the help!

Also successfully done in Windows using Tortoise SVN.

CMCrossroads is a TechWell community.

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