Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get svn log from remote repository without checking files out

Tags:

svn

I have over 100 repos and want to retrieve their full log without checking these repos into my computer.

I know svn log is producing the log file but how can I pass url, username, pass as args?

like image 326
uzay95 Avatar asked Jul 12 '17 15:07

uzay95


People also ask

How do I view svn logs?

Examples. You can see the log messages for all the paths that changed in your working copy by running svn log from the top: $ svn log ------------------------------------------------------------------------ r20 | harry | 2003-01-17 22:56:19 -0600 (Fri, 17 Jan 2003) | 1 line Tweak.

How do I find my svn history?

To find information about the history of a file or directory, use the svn log command. svn log will provide you with a record of who made changes to a file or directory, at what revision it changed, the time and date of that revision, and, if it was provided, the log message that accompanied the commit.

Where are svn logs stored?

By default going to be in /var/log/httpd .


2 Answers

You don't need to checkout a working copy to view the revision log.

The command that you look for is svn log. Here is an example:

svn log https://svn.example.com/repos/MyRepository/MyProject/trunk

Read the documentation: SVNBook | Examining History.

like image 172
bahrep Avatar answered Oct 21 '22 12:10

bahrep


 svn log -l 1 svn+ssh://<repo_address>/trunk

that can be different from your local repo ./trunk

you can encapsulate it in a bash script within a "for loop" of each repo reading from a file

while read repo
do
  svn log -l  1 "$repo"
done < list_of_repo.txt
like image 44
Clement Avatar answered Oct 21 '22 12:10

Clement