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

Re: Some svn workarea questions

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-08-22 18:26:03 CEST

On Thu, 2002-08-22 at 09:25, Mark wrote:
> 1) tar/zip a svn workarea on one computer and write it to CD
> 2) untar/unzip it on a 2nd computer which has no access to the repository
> 3) work on any/all files in that svn workarea on that 2nd computer
> 4) move that modified svn workarea to a 3rd computer with access to the
> repository and update/commit the changes?

As everyone else has said, sure. Those are definitely goals.

> If still possible, is this workarea characteric of svn to be purposely
> maintained? If not possible, what would prevent this?

There is one idea which might affect this goal, but I don't know if it
will ever be implemented, it would be optional if it were implemented,
and it wouldn't cause a problem as long as you moved complete work areas
around.

The idea could be called "fast crawl." First, we would have to have an
option to check out a working directory such that working files are
marked read-only until you do an explicit "svn edit" operation on them.
(This has two immediate applications: advisory locks, and eliminating
the text-base and prop-base penalty on files which have not been edited
yet.) Then, we could add a second option to allow fast crawl. When you
do an "svn edit" of a file, Subversion would mark the containing
directory, and all of its parents, dirty. Then, when we are crawling a
working area for changes, we only have to examine the dirty
directories. (We can apply a similar concept to mixed-rev working
directories so that we don't have to scan the entire working area for
version divergences.)

The up side is that, for a very large projects like the *BSDs, status,
diff, checkin, and update operations would become much faster. The down
sides are:

  * Aesthetically, it's displeasing for an svn command to have to modify
state in the parent directories of the directory it's in.

  * Working copy subdirs stop being completely portable. If I move a
subdir of a working copy elsewhere, mess with it, and move it back, its
parent directories won't get marked dirty, so those changes would be
missed by a fast crawl. But it would still be okay to move complete
working copies around, or to move working copy subdirs around as long as
you don't move them back.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 22 18:26:38 2002

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

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