19

I am trying to write a utility in python to get me all the files that have been modified for a specific branch....i don't care about the date or who commited.

how would I go about doing this? I can handle the python part, I just can't find a command in svn to give me the output.

Eric Wilson
  • 57,719
  • 77
  • 200
  • 270
user140736
  • 1,913
  • 9
  • 32
  • 53

3 Answers3

53
svn log -l 10 path/to/file

Here 10 is number of entries from logs

e.g.

svn log -l 10 pom.xml
shreeneewas
  • 650
  • 5
  • 5
  • Any way to get a printout of the checkins for the entire svn repo folder? I'm thinking something akin to git log? – Sámal Rasmussen Oct 27 '16 at 08:38
  • svn accepts as path: 1.directory with you own working copy, 2. http/https server side repository, 3. file:///base/path local versioned svn database store. – Znik May 27 '20 at 13:34
13
svn diff -r REV:HEAD --summarize

where REV is the revision in which the branch was created.

Michael Hackner
  • 8,605
  • 2
  • 27
  • 29
Dingo
  • 3,305
  • 18
  • 14
  • Using `svn log -v --stop-on-copy` shows the history until the branch creation: [How to find the common ancestor of two branches in SVN?](https://stackoverflow.com/questions/4015412/how-to-find-the-common-ancestor-of-two-branches-in-svn) – Evandro Coan Sep 21 '18 at 18:32
6

You can use the "svnlook history" command: Subversion Complete Reference

NebuSoft
  • 3,962
  • 2
  • 22
  • 24
  • 27
    You should better give a complete example how to use the command here. – Simon Feb 13 '13 at 08:48
  • 7
    This will only run on the svn server where the repository is located and not on the client side. "Since svnlook works via direct repository access (and thus can be used only on the machine that holds the repository), it refers to the repository with a path, not a URL." From: http://svnbook.red-bean.com/en/1.7/svn.ref.svnlook.html . – Marquez May 13 '13 at 21:33
  • "Repository argument required." – Stephan Kristyn Apr 12 '21 at 14:21