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

RE: svn copy failed, commits go to trunk?

From: William Finn <William.Finn_at_riverbed.com>
Date: Thu, 17 Jan 2008 12:23:29 -0800

I was trying to keep my example independent of my personal setup by
using generic names. Sorry I didn't make that clear.

I checked out a specific project: trunk, branches, & tags and am
familiar with the common practices of branching and tagging, but that is
really irrelevant to the issue at hand.

From what I understand, please correct me if I'm wrong here, I _can_
create copies using 'svn copy localfile1 localfile2' then commit said
copy. This will have the same net effect as 'svn copy url1 url2'
assuming nothing changed in the repository since my last update (or
maybe it creates a new file instead of a delta, doesn't matter for this)

And so I did create the copy based on my local version.

My problem is this:
1) I executed svn copy (all local) to create a branch
2) Copy created, with an error about a log file that seemed irrelevant
3) The copy committed just fine (no errors or warnings)
3) All work on the copy was applied to the original

Imo, what should have happened if the copy of the .svn directories
failed in some way is it should have failed completely, not half way.
It effectively created a symlink by copying the files and having both of
my local copies pointing to the original.

This isn't about best practices or my specific install, this is about
how an application behaves when something fails.

-----Original Message-----
From: Talden [mailto:talden_at_gmail.com]
Sent: Thursday, January 17, 2008 11:46 AM
To: William Finn
Cc: users_at_subversion.tigris.org
Subject: Re: svn copy failed, commits go to trunk?

On Jan 18, 2008 7:40 AM, William Finn <William.Finn_at_riverbed.com> wrote:
> I'm fairly new to svn, so maybe I'm doing something stupid, but it
seems to
> me right now that svn has the problem. I did something similar to
this:

You're missing a whole lot of important information needed to give
assistance.

When you 'checkout' you specify which part of the repository you're
checking out. in your case it's unclear and so the best assumption we
can make is that you've checked out the entire repo.

EG if your repo structure is

projectX/
  branches/
  tags/
  trunk/...

It would be usual to check out "projectX/trunk" or one of the branches
or one of the tags.

> svn copy trunk branch

Usually you'd create a branch with URL to URL copies ensuring that the
branching operation is atomic. In addition you can't normally do it
locally because you would normally have the parent of the branches and
trunk folder checked out (though if you're creating a mixed revision
tag or branch then you might).

> svn commit -m"Yay branching!" branch

You probably should revisit the Subversion book for a guide on typical
layouts and typical branching practices.

--
Talden
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-01-17 21:24:27 CET

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.