On Saturday, December 28, 2002, at 07:25 AM, jonatan wrote:
> I recently installed Subversion to handle all PHP code on a web
> server. I have a few questions/issues from the perspective of a newbie
> to Subversion and SCM software in general.
> 1) "svn delete". This seems to delete the file permanently. Suppose I
> have files a and b in revision 1, but in revision 2 I do away with
> file b. Since the file is deleted permanently, there is no way to
> revert to revision 1, since b is deleted. Am I missing something, or
> is there some other way of deleting a file from future revisions
> without deleting it from past revisions?
svn delete already does exactly what you want. to get back to the
previous version, you can either 'svn up -r
version_before_i_deleted_it' or you can (assuming you deleted it in
revision 5) do a 'svn merge -r 4:5 .' and the file will be back in your
working copy. then you can commit to have it back in the repository.
> 2) Stacked commits. I am sometimes offline for periods of time. It
> would be great if I could somehow stack up commits to be performed
> when I get online again. Otherwise I'll have to make one huge commit
> with all changes, which would make the changes less easily
> distinguishable. I realize there may be problems (conflicts) when
> multiple users are committing changes, but since I am the only user
> accessing the repository, I don't see why this wouldn't be possible.
> Any thoughts?
you want distributed repositories, where you've got your own little
repos on your machine, and you merge changes to and from it into your
main repository. lots of other people want this too, but it's a lot of
> 3) I get intermittent crashes from the BDB when running "svn export".
> It has happened about three times, and I'm only at revision 11.
> svn: Couldn't open a repository.
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository file:///home/arksvn/trunk
> svn: Berkeley DB error
> svn: Berkeley DB error while opening environment for filesystem
> DB_RUNRECOVERY: Fatal error, run database recovery
> Running "svnadmin recover" fixes it though. Is this normal? (My server
> is running SVN r3987 and BDB 4.0.14).
well, your repository is getting screwed up somehow. are you accessing
it via ra_local (file:// url's) and hitting control-c to kill the
process or something? or did svn crash for some reason? if svn exits
unexpectedly while talking directly to the repository it can leave the
berkeley db database in an inconsistent state.
> 4) How do I find out which revision of Subversion I'm running, when I
> am running a dev build? "svn --version" just shows "svn, version
> 0.16.0 (dev build)".
at the moment, you remember what revision you built it from ;-)
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Sat Dec 28 19:04:39 2002