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

Re: are directories versioned?

From: <erh_at_swapsimple.com>
Date: 2005-01-03 07:23:05 CET

On Sun, Jan 02, 2005 at 09:13:53PM -0600, kfogel@collab.net wrote:
> erh@swapsimple.com writes:
> > Judging from the behaviour of various svn commands, it seems that
> > directories aren't versioned in subversion. It doesn't appear to be
> > possible to, e.g.:
> > revert changes to a directory w/o reverting the changes to its files, or
> > get a log of changes to the directory itself
> >
>
> For the first, do you mean revert changes to the directory's
> properties? Or revert changes related to the addition and removal of
> files, without reverting changes to the contents of other files?

        I mean revert changes related to the additional and removal of
files, i.e. undo changes to the contents of the directory. There
have been several times where I've wanted to undo moving a file,
but still keep the changes to contents of the file. There have also
been some fewer times when I've wanted to undo the changes to the
contents of the file, but leave it in it's newly moved to location.

> Similar questions apply to the second.
>
> Subversion versions directories, but probably disagrees with you on
> what exactly that means. If you tell us exactly the behavior you're
> expecting, we can tell you whether Subversion offers it, or could
> offer it with UI changes.

        I think of a directory as a file that is a list of other files
and meta information about those files, whose contents can be "edited"
(with appropriate commands) and versioned just like any other file. When
treated this way, directories are special only when they are used to
build the human understandable view of the contents of the repository.
        It's sounding a lot like directories in subversion are more of an
emergent phenomenom that arises because files have pathnames associated
them, and the fact that directories look different in different revisions
is because the files have a different pathname property. Is this anything
like what subversion actually does?
        This isn't what I would consider the most obvious way to arrange
things, but it does seem to have some benefits: to compare to how clearcase
does things, when you revert a directory _all_ file adds/dels/etc.. are
undone and you can't directly revert just a single one, whereas with
subversion you can.
(although that seems to be incomplete wrt undoing a move)

eric

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 3 07:27:46 2005

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