You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Jesper Bork <Je...@eu.fkilogistex.com> on 2003/08/25 07:09:34 UTC
.svn directories
Dear Subversion team,
we are a department with about 80 developers that has used CVS historically,
but VSS during the latest years. As our strategy today is to make all our
products and therefore development environment cross-OS, I'm following the
development of your product with interest as it seems to be one of the more
viable alternatives to what we have today.
In response to your claim about replacing CVS while eliminating its flaws, I
must say that the 'cvs' directories in the source code branch is one of CVS
great annoyances to us (and to others, I would certainly expect), since it
makes the SCM system very vulnerable to copy-paste type errors and
misunderstandings. In a company with many customer-projects, our developers
often copy-paste something from one project into another. A common happening
is therefore that one or more cvs directories has been copy-pasted also, and
that subsequent cvs commands leads to misunderstandings and sometimes even
percieved loss of data. It was therefore with great sadness that I
discovered that you much like CVS have a .svn directory in the source
directories. You could say that this reflects a lack of self-dicipline, but
I believe that unless an even easier way of doing stuff like that exists,
this is what people do.
As far as I have been able to read, there is no way to configure Subversion
to do otherwise, e.g. place this information in some kind of designated
meta-data directory of a project. We have actually discussed building a
modified CVS with those catalogs relocated to a (configurable) location not
intruding into the source branch, and will have to do the same in order to
consider Subversion an alternative. I frankly do think that an SCM tool
should not be intrusive with regard to the source code modules. Would it be
possible for you or us to add such an option to you otherwise very promising
product ?
Med venlig hilsen/Best regards
Jesper Bork
Platform Group Manager
FKILogistex Crisplant A/S
Software Department Tel. (+45) 96 53 10 00
Stadionvej 2A Direct (+45) 96 53 11 71
DK-9560 Hadsund Fax (+45) 96 53 10 10
Denmark E-mail mailto:Jesper.Bork@eu.fkilogistex.com
Web <http://www.crisplant.com>
Re: .svn directories
Posted by Rafael Garcia-Suarez <ra...@hexaflux.com>.
Jesper Bork wrote:
>
> In a company with many customer-projects, our developers
> often copy-paste something from one project into another. A common happening
> is therefore that one or more cvs directories has been copy-pasted also, and
> that subsequent cvs commands leads to misunderstandings and sometimes even
> percieved loss of data. It was therefore with great sadness that I
> discovered that you much like CVS have a .svn directory in the source
> directories. You could say that this reflects a lack of self-dicipline, but
> I believe that unless an even easier way of doing stuff like that exists,
> this is what people do.
Copy and paste is evil, as the old saying goes. However Subversion
provides a facility to construct a working copy made out of checkouts
from different repositories : lookup 'svn:external' in the book.
Combined with branching/tagging, this proves to be powerful. That might
be a solution to your problem.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Kumaran Santhanam <ku...@tigris.org>.
> > that this reflects a lack of self-dicipline, but I believe
> > that unless an even easier way of doing stuff like that
> > exists, this is what people do.
>
> Depending on what OS you're working on and what settings you
> have a copy-paste operation would not affect subversion. The
> .svn directories are hidden on Linux systems and don't get
> copied if you don't tell explicitely to do so. And the .svn
> directories on windows are now hidden, so if you don't have set
> the "show hidden files" option you won't see them, can't select
> them and therefore they don't get copied.
$ cp -R /path/to/dir1 /path/to/dir2
will copy everything, including dot-files, as will
$ tar cf - /path/to/dir1 | (cd /path/to/dir2; tar xvpBf -)
Presumably, naive users will not be using the command line in
this way. However, their particular flavor of GUI might also
copy .svn/ files when doing a recursive copy.
Kumaran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by SteveKing <st...@gmx.ch>.
.svn directories
----- Original Message -----
From: Jesper Bork
> In response to your claim about replacing CVS while
> eliminating its flaws, I must say that the 'cvs' directories
> in the source code branch is one of CVS great
> annoyances to us (and to others, I would certainly
> expect), since it makes the SCM system very vulnerable
> to copy-paste type errors and misunderstandings. In a
> company with many customer-projects, our developers
> often copy-paste something from one project into another.
> A common happening is therefore that one or more cvs
> directories has been copy-pasted also, and that subsequent
> cvs commands leads to misunderstandings and sometimes
> even percieved loss of data. It was therefore with great
> sadness that I discovered that you much like CVS have
> a .svn directory in the source directories. You could say
> that this reflects a lack of self-dicipline, but I believe that
> unless an even easier way of doing stuff like that exists,
> this is what people do.
Depending on what OS you're working on and what settings
you have a copy-paste operation would not affect subversion.
The .svn directories are hidden on Linux systems and don't
get copied if you don't tell explicitely to do so. And the
.svn directories on windows are now hidden, so if you
don't have set the "show hidden files" option you won't
see them, can't select them and therefore they don't
get copied.
Stefan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by kf...@collab.net.
kfogel@collab.net writes:
> Jesper Bork <Je...@eu.fkilogistex.com> writes:
> > directories. You could say that this reflects a lack of self-dicipline, but
> > I believe that unless an even easier way of doing stuff like that exists,
> > this is what people do.
>
> You could say that... if you were the type to confuse a carefully
> thought-out design decision with a character flaw on the part of the
> developers. But you're not that type, I hope.
Heh -- Jesper, my apologies. Ben Collins-Sussman just pointed out to
me that the more likely interpretation of your mail is that you meant
users cutting-and-pasting could be said reflect a lack of
self-discipline, and you weren't referring to the Subversion design at
all.
Sorry for jumping to conclusions. And for what it's worth, I don't
think it reflects a lack of self-discipline on their part at all.
It's just one of those unfortunate conflicts between the expectations
of humans and the expectations of software designers :-(.
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Jack Repenning <jr...@collab.net>.
At 9:54 AM -0700 8/25/03, Kumaran Santhanam wrote:
>However, I'm drawing on the
>experience that this hasn't been a problem in commercial SCM
>tools that do not have meta-data directories, since all of those
>require the same sort of notification.
Speaking only for one such system (ClearCase web or snapshot views),
the net net is, if you make such a copy, you may get
ClearCase-unusable files, you may get partly-ClearCase usable files,
you may get something that works... or works until you need it most.
It's not a precedent we necessarily want to follow slavishly, that's
for sure.
--
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Michael Andersen Nexø <ne...@post.cybercity.dk>.
Kumaran,
A good thing about the current .svn dir design is the fact that you can get
rid of a wc entirely simply by deleting its root folder.
Moving the bookkeeping to an external location would very easily result in
unwanted residue surviving the delete.
If you want to implement a solution with external bookkeeping, you should
probably make sure to have some kind of pointer from the wc to the
bookkeeping data in order to be able to delete it automatically.
I cannot think of a way to do this without ruining the purpose of all this:
a pristine working copy, but maybe you can...
Cheers
Michael Nexø
----- Original Message -----
From: "Kumaran Santhanam" <ku...@tigris.org>
To: "Greg Hudson" <gh...@MIT.EDU>
Cc: <de...@subversion.tigris.org>
Sent: Monday, August 25, 2003 6:54 PM
Subject: Re: .svn directories
>
> On a slightly different note: Besides the v1.0 release
> arguments, I'm curious to know if anybody out there actually
> prefers having built-in .svn/ directories, and if so, in which
> scenario they might need them.
>
> Kumaran
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Kumaran Santhanam <ku...@tigris.org>.
> I, for one, would want to see a fleshed out design (stating new
> subcommands and their syntax and complete WC behavior) and
> proof-of-concept implementation (mostly working, but perhaps
> not edge-case complete) before a branch is created on
> svn.collab.net for this.
Fair enough - I will have a working patch ready in a few days.
As it stands right now, I have the index working, and
v_extend_with_adm_name() is able to locate the admin directories
in either .svn/ or ~/.subversion/. Checkout performs the
appropriate directory creation, and the config option is able to
turn off the feature.
I'm trying to resolve a hairy problem with the logger.
Apparently, it has some issues with absolute versus relative
paths and there are some interesting pieces of logic in
svn_wc__merge_prop_diffs() to take care of this. Once I have
those fixed, I believe I'll have a pretty good proof-of-concept
for phase 1.
> Your ~/.subversion/adm/index proposal worries me in that
> corruption in that one file leads to loss of all WCs on that
> machine. I would like to know if that file is either corrupted
> or accidentally deleted (both are realistic expectations to
> occur at some point), how the system is expected to recover.
> I dislike the single point of failure that would cause it to
> globally trash the user's WCs across the system if the mapping
> isn't recoverable.
I'll need to think about this more - it was a tradeoff between
reading the ~/.subversion/meta directory (as it's now called,
unless anybody has any objections) or reading a single index file
in ~/.subversion/meta/index. Let me think about this more, since
I might be able to come up with a way to eliminate the index
altogether.
> A hunch is a one-way hash of the directory path. But, then,
> what about symlinks (multiple access points to the same working
> copy)? Are we going to disallow the user from using those?
> How do we discover they are identical? But, what if the
> sysadmin rearranges the disk layout and redoes symlinks (moves
> home directories to another partition)? How do you plan to
> balance these needs?
With the index file, this would already work. The index simply
contains multiple entries for the same directory alias. This is
how it looks right now:
~/.subversion/meta/index:
# Subversion meta-data index
# Each line represents a mapping between working copy
# paths and the meta-data cache. The line is parsed
# as follows:
#
# dirname(line) = working copy path
# basename(line) = key
#
# These scheme is used so that there are no special
# reserved characters disallowed from path names.
/home/user/projects/subversion/3f4b01aa
/home/user/projects/rapidsvn/3f4b01bb
If a symlink were created:
/home/user/svn -> /home/user/projects/subversion
Then, an additional line would be appended to the index:
/home/user/svn/3f4b01aa
Note that the trailing key is the same as /home/user/project/subversion
As such, this would work seamlessly.
> If you do store this metadata in a user's homedir, what about
> the 'shared working copy' model? How can a user import the
> definition of a working copy? This is usually a valid model
> for websites who have content under revision control (like the
> ASF). Ideally, they wouldn't want a meta-directory on the
> public site, but you also can't guarantee that the same user
> will do every operation. -- justin
Shared working copy is sticky. Unless the meta data is shared
also, this is of course impossible. So, either the meta data has
to be shared somehow, or the current method of putting .svn/
directories everywhere might be renamed to "shared working copy"
feature.
Pure speculation here, but it might make sense to have the
external meta data feature be default, but allow users to
explicitly use the embedded .svn/ directory model if they want to
share repositories. That way, they are also aware of what they
are doing.
My current prototype already seamlessly detects the .svn/
directories and behaves correctly. In other words, you can turn
on the external meta data option and still use SVN with both
types of working copies.
As for importing a working copy, can you please expound on this a
little more. I don't quite understand what you have in mind.
Cheers,
Kumaran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Justin Erenkrantz <ju...@erenkrantz.com>.
--On Tuesday, August 26, 2003 12:05 AM -0700 Kumaran Santhanam
<ku...@tigris.org> wrote:
> I would love to have a branch to submit these changes into.
> Branches are, after all, good for experimental features and such.
> How would I go about getting this set up?
I, for one, would want to see a fleshed out design (stating new subcommands
and their syntax and complete WC behavior) and proof-of-concept implementation
(mostly working, but perhaps not edge-case complete) before a branch is
created on svn.collab.net for this.
Your ~/.subversion/adm/index proposal worries me in that corruption in that
one file leads to loss of all WCs on that machine. I would like to know if
that file is either corrupted or accidentally deleted (both are realistic
expectations to occur at some point), how the system is expected to recover.
I dislike the single point of failure that would cause it to globally trash
the user's WCs across the system if the mapping isn't recoverable.
A hunch is a one-way hash of the directory path. But, then, what about
symlinks (multiple access points to the same working copy)? Are we going to
disallow the user from using those? How do we discover they are identical?
But, what if the sysadmin rearranges the disk layout and redoes symlinks
(moves home directories to another partition)? How do you plan to balance
these needs?
If you do store this metadata in a user's homedir, what about the 'shared
working copy' model? How can a user import the definition of a working copy?
This is usually a valid model for websites who have content under revision
control (like the ASF). Ideally, they wouldn't want a meta-directory on the
public site, but you also can't guarantee that the same user will do every
operation. -- justin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Kumaran Santhanam <ku...@tigris.org>.
> Mmmm .... a patch that exists only as a patch, for people to try out
> at will, perhaps. A patch that exists as a branch, likewise (and
> probably a better approach, in order to track the trunk). But not in
> trunk/. We're really trying to get trunk/ releasable, and neither
> the idea of a minimally verified patch (even if it is optional), nor
> a minimally verified germ-of-an-idea fits that goal at all.
I would love to have a branch to submit these changes into.
Branches are, after all, good for experimental features and such.
How would I go about getting this set up?
Thanks,
Kumaran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Jack Repenning <jr...@collab.net>.
At 2:44 PM -0700 8/25/03, Kumaran Santhanam wrote:
>
>I guess the best thing to do
>is to get the patch out there and see what reports people come
>back with.
Mmmm .... a patch that exists only as a patch, for people to try out
at will, perhaps. A patch that exists as a branch, likewise (and
probably a better approach, in order to track the trunk). But not in
trunk/. We're really trying to get trunk/ releasable, and neither
the idea of a minimally verified patch (even if it is optional), nor
a minimally verified germ-of-an-idea fits that goal at all.
I'm not at all jazzed, either, about the idea that there would
permanently be a choice of working-copy types. Life's confusing
enough already.
--
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Kumaran Santhanam <ku...@tigris.org>.
> * I have several working copies of Subversion on my main workstation,
> capturing different versions; some were checked out from (or switched
> to) tags or branches, some just haven't been updated in a while.
> * I have repositories named "jrepenning" on several Subversion
> servers, with more or less the same contents (my home directory).
> One need only mention "the repository named 'test'" to suggest other
> possibilities of this sort.
> * On several of the machines where I work, the home directory is
> shared (so the metadata would be, in your proposal, I think?), but
> the working copies are not, and all have the same name and path, but
> different state.
> * I have upon occasion moved a repository from one server to another.
> * Some people really like to share working copies, "needle exchange"
> metaphors notwithstanding, making "home directory" an ill-defined
> concept.
These are very good points. Ultimately, I suspect that you will
not be able to solve all problems with one or the other approach.
That's why I would think the best thing is to keep it as an
option. Of course, the question is which option should be
default at some point, but that should be deferred until some
testing is done.
I'm working carefully to make sure that it's backward-compatible
with the current approach. In other words, the option will only
affect new checkouts, not old ones. I guess the best thing to do
is to get the patch out there and see what reports people come
back with.
Kumaran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Jack Repenning <jr...@collab.net>.
At 9:54 AM -0700 8/25/03, Kumaran Santhanam wrote:
>On a slightly different note: Besides the v1.0 release
>arguments, I'm curious to know if anybody out there actually
>prefers having built-in .svn/ directories, and if so, in which
>scenario they might need them.
I have no objection in the abstract to storing the metadata outside
the working copy. But I want to be sure the concrete implementation
covers all the bases, and I'm not at all sure I know what all bases
there are to be covered. I'm concerned that your centralized
metadata tree might have collisions. I haven't been able to pull
together a complete-enough description of your work to know whether
the tricky cases I can think of are covered, but after a bit off
thought on the various possible completions to the holes in my
knowledge, here are some worrisome cases:
* I have several working copies of Subversion on my main workstation,
capturing different versions; some were checked out from (or switched
to) tags or branches, some just haven't been updated in a while.
* I have repositories named "jrepenning" on several Subversion
servers, with more or less the same contents (my home directory).
One need only mention "the repository named 'test'" to suggest other
possibilities of this sort.
* On several of the machines where I work, the home directory is
shared (so the metadata would be, in your proposal, I think?), but
the working copies are not, and all have the same name and path, but
different state.
* I have upon occasion moved a repository from one server to another.
* Some people really like to share working copies, "needle exchange"
metaphors notwithstanding, making "home directory" an ill-defined
concept.
--
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Ben Collins-Sussman <su...@collab.net>.
Kumaran Santhanam <ku...@tigris.org> writes:
> On a slightly different note: Besides the v1.0 release
> arguments, I'm curious to know if anybody out there actually
> prefers having built-in .svn/ directories, and if so, in which
> scenario they might need them.
Sure. The whole point is that a subtree of a working copy can be
"broken off" into an independent working copy. Or a working copy can
just be moved around from one disk to another, or one box to another.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Ben Gollmer <be...@jatosoft.com>.
On Mon, 25 Aug 2003 11:54:24 -0500, Kumaran Santhanam <ku...@tigris.org>
wrote:
> On a slightly different note: Besides the v1.0 release
> arguments, I'm curious to know if anybody out there actually
> prefers having built-in .svn/ directories, and if so, in which
> scenario they might need them.
I prefer having the .svn dirs, because it means I don't need Yet Another Svn
Command (aka 'svn wc') to move around my working copy. Maybe I've just gotten
used to the way Subversion works, but it's pretty damn easy to type 'mv
/home/ben/wc1 /home/ben/wc2'.
If this feature is on by default, I can forsee the ~/.subversion/wc dir (or
wherever you are storing the .svn metadata) getting out of sync pretty quickly
on my machine. I would imagine the same goes for experienced CVS users, as
well.
--
Ben
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Kumaran Santhanam <ku...@tigris.org>.
On Mon, 25 Aug 2003, Greg Hudson wrote:
> Let's keep the arguments straight here:
>
> Argument 1 (yours): recursive commands bump into .svn
> directories, which is sometimes undesirable.
>
> Argument 2 (Jesper's): naive users copy parts of working
> directories and don't understand they're copying metadata as
> well.
>
> This particular thread is talking about argument 2. The users of
> argument 2 are naive. They don't know they should use a special command
> to copy stuff from working directories. They probably aren't
> comfortable typing commands at all. They aren't thoughtful enough to
> know that they need to somehow inform the computer how the target of the
> copy will be used.
Thank you for making this more explicit. They are indeed two
arguments, but I believe they have a common solution. Let me
explain:
In my case, recursive commands are bothered by the .svn/
directories. This is easily solved by relocating the .svn/
directories to a tree outside of the workspace. There have been
solutions proposed in which the workspace is mirrored, but these
seem to be sub-optimal compared to simply fixing the client.
Jesper's users don't inform the source control system after
they've copied the directories. Granted, my solution won't
completely solve this for them. However, I'm drawing on the
experience that this hasn't been a problem in commercial SCM
tools that do not have meta-data directories, since all of those
require the same sort of notification.
The crux in Jesper's case is failure-mode. If the user
accidentally copies the .svn/ directories, I would suspect that
SVN's behavior is more unpredictable. On the other hand, if
there are no .svn/ directories and the working files are copied
without informing SVN, the new files will show up as '?' when
doing 'svn status' (or the equivalent in a GUI). It seems to me
that the latter is a softer landing, so to speak.
I suspect that Jesper's users wish to copy a small directory to
another location and submit them to source control. Please
clarify if I'm wrong about this. In this case, the softer
landing is much more desirable, since it's essentially what they
were trying to do in the first place.
On a slightly different note: Besides the v1.0 release
arguments, I'm curious to know if anybody out there actually
prefers having built-in .svn/ directories, and if so, in which
scenario they might need them.
Kumaran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Greg Hudson <gh...@MIT.EDU>.
On Mon, 2003-08-25 at 11:57, Kumaran Santhanam wrote:
> On Mon, 25 Aug 2003, Greg Hudson wrote:
> > I don't think it's a very compelling argument, though. Won't these same
> > people expect to be able to copy-paste from working directories and
> > continue doing work? That only works if we have embedded .svn
> > directories.
> There are commercial solutions that do not have embedded
> administrative directories. They simply provide a clean command
> with which to copy/move workspace directories.
Let's keep the arguments straight here:
Argument 1 (yours): recursive commands bump into .svn
directories, which is sometimes undesirable.
Argument 2 (Jesper's): naive users copy parts of working
directories and don't understand they're copying metadata as
well.
This particular thread is talking about argument 2. The users of
argument 2 are naive. They don't know they should use a special command
to copy stuff from working directories. They probably aren't
comfortable typing commands at all. They aren't thoughtful enough to
know that they need to somehow inform the computer how the target of the
copy will be used.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Kumaran Santhanam <ku...@tigris.org>.
On Mon, 25 Aug 2003, Greg Hudson wrote:
> On Mon, 2003-08-25 at 10:44, kfogel@collab.net wrote:
> > Jesper Bork <Je...@eu.fkilogistex.com> writes:
> > > directories. You could say that this reflects a lack of
> > > self-dicipline, but I believe that unless an even easier
> > > way of doing stuff like that exists, this is what people
> > > do.
...
> I don't think it's a very compelling argument, though. Won't these same
> people expect to be able to copy-paste from working directories and
> continue doing work? That only works if we have embedded .svn
> directories.
There are commercial solutions that do not have embedded
administrative directories. They simply provide a clean command
with which to copy/move workspace directories.
I intend to implement this in phase 2 of my patch. Phase 1 will
simply be getting the feature to work as a config file option. I
was thinking of a new command 'wc' (working copy)
It would go something like this:
User desires to copy workspace /home/user/venus to /home/user/mars :
1) cp -R /home/user/venus /home/user/mars
2) svn wc copy /home/user/venus /home/user/mars
3) svn wc list
/home/user/venus
/home/user/mars
User desires to move workspace /home/user/venus to /home/user/mars :
1) mv /home/user/venus /home/user/mars
2) svn wc move /home/user/venus /home/user/mars
3) svn wc list
/home/user/mars
User wishes to remove a workspace from control :
1) svn wc remove /home/user/venus
User wishes to edit the working copy list:
1) svn wc edit
[Opens editor with the following text]
/home/user/venus -> (REPO URL)
/home/user/mars -> (REPO URL)
2) user can manipulate the left side of the mapping
An intended side-effect of separated meta directories is the fact
that you can get global information about all of your workspaces
at once. This is a common features in popular commercial SCM
solutions, and one which I have found extremely useful.
Regards,
Kumaran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Greg Hudson <gh...@MIT.EDU>.
On Mon, 2003-08-25 at 10:44, kfogel@collab.net wrote:
> Jesper Bork <Je...@eu.fkilogistex.com> writes:
> > directories. You could say that this reflects a lack of self-dicipline, but
> > I believe that unless an even easier way of doing stuff like that exists,
> > this is what people do.
>
> You could say that... if you were the type to confuse a carefully
> thought-out design decision with a character flaw on the part of the
> developers.
You flew off the handle; the "lack of self-discipline" was in reference
to the users who copy-paste from working dirs, not the Subversion
developers.
I don't think it's a very compelling argument, though. Won't these same
people expect to be able to copy-paste from working directories and
continue doing work? That only works if we have embedded .svn
directories.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by kf...@collab.net.
Jesper Bork <Je...@eu.fkilogistex.com> writes:
> directories. You could say that this reflects a lack of self-dicipline, but
> I believe that unless an even easier way of doing stuff like that exists,
> this is what people do.
You could say that... if you were the type to confuse a carefully
thought-out design decision with a character flaw on the part of the
developers. But you're not that type, I hope.
:-(
Seriously, dude: You can give your technical opinion here without
resorting to ad hominem cheap shots :-). I assure you the decision to
store .svn/ directories the same way CVS stores CVS/ directories was
not made from mindless habit, but from consideration of all the
options. We are aware that there are both advantages and
disadvantages; you, apparently, are only aware of the disadvantages.
> As far as I have been able to read, there is no way to configure Subversion
> to do otherwise, e.g. place this information in some kind of designated
> meta-data directory of a project. We have actually discussed building a
> modified CVS with those catalogs relocated to a (configurable) location not
> intruding into the source branch, and will have to do the same in order to
> consider Subversion an alternative. I frankly do think that an SCM tool
> should not be intrusive with regard to the source code modules. Would it be
> possible for you or us to add such an option to you otherwise very promising
> product ?
That is correct, there is currently no way to configure Subversion to
do otherwise. There may be such an option after 1.0, but we can't
promise.
Good luck! I hope you find Subversion useful anyway.
-Karl
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Kumaran Santhanam <ku...@tigris.org>.
> Not giving any opinion about out-tree-ing the .svn directories,
> I'd like to point out that it's possible to out-tree your
> workspace : for example, if you've checked out a wc/ working
> copy, you can install in wc2/ a copy of the sources you need
> (using rsync(1) for this is very efficient) or build a tree
> of symlinks (I have used this last option myself, for a project
> in which the build process was rather complicated and had a
> tendancy to mess up with the .svn directories.)
This is also another good idea, adding to the list of great
suggestions by others on the list. However, here are my issues
with it:
1) While this approach would be fine for me, it would be an extra
burden for users who may not be accustomed to manipulating files
this way.
2) Symlinks only work on filesystems which support it, leaving
rsync as the only option. Although I use Linux, many others may
be on other operating systems.
3) While disk space is inexpensive, keeping duplicate copies of
codebases that span hundreds of megabytes may still pose a
problem.
In any case, unless I run into some serious issues, I will be
posting a patch with the new feature. As I mentioned before,
I've already completed the analysis, and if I didn't miss
anything critical, it should be a pretty straightforward
and minimal change.
Thanks,
Kumaran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Rafael Garcia-Suarez <ra...@hexaflux.com>.
Kumaran Santhanam wrote:
> Coincidentally, I started a thread just a few days ago discussing
> exactly this topic. I also feel strongly about the .svn/
> directories and believe that an SCM tool should leave the user's
> workspace pristine. Your user scenario is interesting - my
> concern has been that standard text scripting tools have to be
> told explicitly to ignore the .svn/ directories, making it harder
> to do certain types of source code analysis.
Not giving any opinion about out-tree-ing the .svn directories,
I'd like to point out that it's possible to out-tree your
workspace : for example, if you've checked out a wc/ working
copy, you can install in wc2/ a copy of the sources you need
(using rsync(1) for this is very efficient) or build a tree
of symlinks (I have used this last option myself, for a project
in which the build process was rather complicated and had a
tendancy to mess up with the .svn directories.)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: .svn directories
Posted by Kumaran Santhanam <ku...@tigris.org>.
> In response to your claim about replacing CVS while eliminating
> its flaws, I must say that the 'cvs' directories in the source
> code branch is one of CVS great annoyances to us (and to
> others, I would certainly expect), since it makes the SCM
> system very vulnerable to copy-paste type errors and
> misunderstandings.
> ...
> As far as I have been able to read, there is no way to
> configure Subversion to do otherwise, e.g. place this
> information in some kind of designated meta-data directory of a
> project.
> ...
> I frankly do think that an SCM tool should not be intrusive
> with regard to the source code modules. Would it be possible
> for you or us to add such an option to you otherwise very
> promising product ?
Coincidentally, I started a thread just a few days ago discussing
exactly this topic. I also feel strongly about the .svn/
directories and believe that an SCM tool should leave the user's
workspace pristine. Your user scenario is interesting - my
concern has been that standard text scripting tools have to be
told explicitly to ignore the .svn/ directories, making it harder
to do certain types of source code analysis.
In any case, I volunteered to create a patch for this purpose.
The patch will relocate the .svn/ directories to an alternate
path outside of the project workspace. This idea was received
with mixed opinions, and I can appreciate both sides of the
argument. However, my development environment requires this
feature, and thus I need to do it at least on a private copy.
I'm pretty much finished with my analysis of the solution, and it
looks like the changes are pretty minimal. I will be sending out
a patch in the next few days, and I hope the maintainers can find
some time to look at it.
I appreciate that my previous bugfix patch was accepted so
quickly. The fix ensures that all of the .svn/ directory path
constructions happen in exactly one place in the code, making it
easier to implement this new feature.
Regards,
Kumaran
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org