You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Gerrit Kruitbosch <gk...@edgeproducts.com> on 2005/03/17 22:13:04 UTC
renaming a file within a renamed directory
First of all, I have used Clearcase for the last 4 years and just
recently changed jobs and started using Subversion. I LOVE IT!
However, I just tried to rename a file in a directory I just renamed. I
get the following error message, "svn: Cannot copy or move 'myfile.txt':
it's not in the repository yet; try committing first" The file is
indeed under svn version control and shows up as such in explorer
(tortoiseSVN) Is this a bug or is there a good reason that it is not
allowed? I tried it with tortoiseSVN and with command line SVN. I am
running WinXP SP 2.
One other question, Is there a utility or such that will delete all
files in a subtree that are not under subversion control? One obvious
solution would be to do a commit and then delete all, then checkout.
However, I would like to do it without doing a commit first.
Thanks in advance.
Gerrit
Re: renaming a file within a renamed directory
Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 17, 2005, at 4:13 PM, Gerrit Kruitbosch wrote:
> Is this a bug or is there a good reason that it is not allowed?
Subversion doesn't yet have true moves -- only copies & deletes.
Do understand why disallow a copies of copies, there's commentary at
the bottom of libsvn_wc/copy.c.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: renaming a file within a renamed directory
Posted by Mark Phippard <Ma...@softlanding.com>.
"Gerrit Kruitbosch" <gk...@edgeproducts.com> wrote on 03/17/2005
05:13:04 PM:
> First of all, I have used Clearcase for the last 4 years and just
recently
> changed jobs and started using Subversion. I LOVE IT! However, I just
tried
> to rename a file in a directory I just renamed. I get the following
error
> message, "svn: Cannot copy or move 'myfile.txt': it's not in the
repository
> yet; try committing first" The file is indeed under svn version
control and
> shows up as such in explorer (tortoiseSVN) Is this a bug or is there a
good
> reason that it is not allowed? I tried it with tortoiseSVN and with
command
> line SVN. I am running WinXP SP 2.
After you rename the directory, you have to commit that change before you
can do any more rename operations on that directory or its contents. Once
you have committed the first change, then you can rename the files.
Mark
_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org