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

Re: Creating copies of project with full folder structure leads to misbehaviour when commiting

From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
Date: Wed, 10 Sep 2008 16:15:51 +0100

jwezel wrote:
> Hi Jean-Marc,
>
>> There is no
>> implicit relationship between the local root folder of a working copy
>> and the repository folder it is pointing to.
> In daily practice using Tortoise SVN as Explorer-Plugin, the local
> folder name and the name in repository is the same.
[...]

Only *inside* the working copy. The name of the directory that the
working copy can be anything, as can the path to it. To change that
behaviour would be restrictive - most users would have to call all of
their working copies "trunk" since this is the directory that you
usually check out. In practice you want to be able to call your w/c
"proj1", "proj2" "another_copy_of_proj1" etc and not be restricted as to
where on the filesystem it lives.

>
> BTW: This request not only applies for stupid copy&paste actions in
> windows explorer; also if you're using some tools for working special
> things in the folder structure e.g. every night, they typically don't
> know anything of SVN, they just copy folders and files and do their
> job. But at the end, I'd like those changes to be integrated into my
> SVN repository again.

If you add files, then they are unversioned until you "svn add" them.
How could subversion possibly know:
a) that you created the file using a copy operation (explorer or otherwise)
b) whether or not you *actually* want to add the files - it doesn't
follow that because you typed copy foo.c foo2.c that foo2.c should
automatically be added

You have to tell it what you want it to do, subversion is very good at
never doing anything you don't ask it to. Therefore, your automated
process *will* have to be subversion aware if they want to do things
with subversion.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-09-10 17:16:07 CEST

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

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