[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Get last committed in SVN file from the local machine

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Wed, 29 Jan 2014 09:01:00 +0000

On 29 January 2014 07:16, Sandeep Shalhalkar
<shalhalkar_sandy_at_rediffmail.com> wrote:
> I have observed that if I have updated the SVN committed file locally, and tries to REVERT the same, I don't require to contact to the SVN server for fetching the recent SVN committed file, it is available somewhere locally which get replaced.

I think you mean modified rather than updated. Update has a specific
meaning in subversion.

> I would like to know tha path of the file where the backup is maintained by SVN.

It is buried in the subversion metadata directory .svn at the root of
your working copy. It may well be stored compressed and there is no
guarantee that the way it is stored now will remain the same when you
update to the next release of Subversion. You really do not want to be
digging in there.

> Is there any medium to get the local file path of the SVN copy? I would like to fetch the same in C#.Net

No. The only way to get to it from C# is either to link the subversion
library and use the API call to access the working copy database, or
call the subversion command line client (svn.exe) to extract the file
for you. Building the subversion library yourself is not a trivial job
as there are a lot of dependencies, so I would go for the CLI approach
first.

Maybe a silly question but why do you want to do this?

Simon

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3072237

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-01-29 10:01:10 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.