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

Re: move/revert questions

From: Vladimir Prus <ghost_at_cs.msu.su>
Date: 2002-07-26 12:57:01 CEST

Philip Martin wrote:
> Vladimir Prus <ghost@cs.msu.su> writes:
> > 1. If I run in a certain working copy
> >
> > svn mv src src2
> >
> > I see empty "src" and "src/ref" directories left. Shouldn't they be
> > removed?
>
> We need them, see issue #611.

Reading that issue I understand that removing directories will be implemented
later? Am I right?

> > 2. If I later decide to undo the move operation, I run
> >
> > svn revert -R src
> > svn revert -R src2
> >
> > I'd expect the src2 dir to be removed entirely -- after all, each file
> > there corresponds to some repository revision. But it is not done. Is
> > this merely an omission?
>
> Revert just removes the 'A' status, leaving unversioned items in the
> working copy, that's how it was designed. It's possible that revert
> for a copy should remove the item, how would people feel about revert
> for copies and revert for adds having different behaviour?

I think it's logical. I should be able to undo all of my changes to working
copy done by other svn commands with a sequence of "svn revert" commands. If
I added a file manually and then did "svn add", then "svn revert" should keep
it. If I created a dir with "svn mv" then I find it reasonable for "svn
revert" to remove the copy, provided I have not modified anything there.

- Volodya

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 26 12:54:35 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.