List files committed for a revision

Svn

Svn Problem Overview


How do I list the file names/paths that are committed, using a revision number?

Svn Solutions


Solution 1 - Svn

svn log --verbose -r 42

Solution 2 - Svn

To just get the list of the changed files with the paths, use

svn diff --summarize -r<rev-of-commit>:<rev-of-commit - 1>

For example:

svn diff --summarize -r42:41

should result in something like

M       path/to/modifiedfile
A       path/to/newfile

Solution 3 - Svn

From remote repo:

svn log -v -r 42 --stop-on-copy --non-interactive --no-auth-cache --username USERNAME --password PASSWORD http://repourl/projectname/

Solution 4 - Svn

A nice short hand for previous version is the -c option .. e.g -c r42 means the changes in revision 42 (saves on having to work out the 41 for 42...)

So say you want to find say the files involved in the last 100 commits by a particular user - foo - you could use this to list them -

svn log . | grep '| foo |' | head -100 | cut -d '|' -f 1 | while read rev;
   do echo $rev; svn diff --summarize -c $rev . ; done

Giving a result like this -

r77504
M       PathA/Data.xml
r77103
M       PathB/SubPathB/Home.xml
M       PathB/SubPathC/YaDa.xml
r76498
M       PathA/Data.xml

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSatishView Question on Stackoverflow
Solution 1 - SvnphihagView Answer on Stackoverflow
Solution 2 - SvntrapickiView Answer on Stackoverflow
Solution 3 - SvnZiTALView Answer on Stackoverflow
Solution 4 - SvnMr RView Answer on Stackoverflow