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

Re: Where does Subversion keep the initial version of a file after the initial commit?

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Mon, 13 Oct 2008 19:03:20 -0700

On Mon, Oct 13, 2008 at 5:39 PM, <Chris_Hoang_at_playstation.sony.com> wrote:

> Hello,
> I have just used TortoiseSVN to do an initial commit of a simple
> experimental project of mine into a Subversion
> repository, freshly created.
> After the initial commit, I could use TortoiseSVN to browse my repository.
> And I saw my source code file there,
> as intended. It was only when I used DOS commands to 'browse'
> through my repository that I didn't see my
> source code file.
> I wonder if you could please help me understand how and where Subversion
> keeps the source code file after the
> initial commit? If my understanding is correct, for each commit,
> Subversion keeps, in the repository, a small file with
> information of what has changed. This makes me think that for the initial
> commit, Subversion would need to store
> the complete source code file, somewhere. And I wonder where this would
> be?
> The reason I am having these questions is that I am planning to set up my
> repository on a Windows shared drive,
> which is regularly backed up. If the source code file is in the
> repository, then my code back-up would be taken care
> of. And if I loose my source code file, in my development environment, I
> think I would still be OK.
> But if the source code file is actually somewhere else outside of the
> repository, then I would need to find another way
> to back up my code.
> Thank you for your help.

All the files are within the ROOT/revs directory of the repository. Each
file is not separately. Instead each file in that directory represents a
revision. Your files are there in those revision numbered files and you can
just backup the repository directory and you are good to go :-)

Received on 2008-10-14 04:03:45 CEST

This is an archived mail posted to the Subversion Users mailing list.

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