Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get svn log from repository, not working copy

Tags:

linux

svn

I want to get the log's from a svn repository. Now, I'm capable of doing this in two ways, make a local repository and get the svn logs from there. Or, number 2, get it from the DAV/HTTP served svn repository.

Is there a way to get the svn logs directly from the repository folder? (The one with conf,db,gooks,etc in it?). If I do

svn log <repodir>

I get the error 'svn: '/var/repositories/test' is not a working copy'. With

svnlook log

I get just a empty line as a return.

Thanks.

like image 286
WesleyE Avatar asked Mar 03 '12 18:03

WesleyE


People also ask

How do I find my svn working copy?

The working copy will be located in a directory called trunk on your computer relative to the directory you issued the command in. If you wish to have a different name for your working copy you can add that as a parameter to the end of the command. e.g. This will create a working copy called MyProjectSource .

How do I view svn logs?

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.

What is a svn working copy?

A Subversion working copy is your own private working area, which looks like any other ordinary directory on your system. It contains a COPY of those files which you will have been editing on the website.

Where are svn logs stored?

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


2 Answers

You have to use the file:// protocol, so the parameter gets parsed as URL (repositories can only talked to with an URL):

svn log file:///path/to/your/repo
like image 85
knittl Avatar answered Oct 22 '22 05:10

knittl


Is there a way to get the svn logs directly from the repository folder?

Use file:/// protocol

svn log file:///D:/Repositories/Hello there D:/Repositories/Hello is full path to repo with slashes in path instead Win-backslashes

like image 21
Lazy Badger Avatar answered Oct 22 '22 06:10

Lazy Badger