You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Vladimir Prus <gh...@cs.msu.su> on 2002/10/30 16:23:52 UTC
svn rm bug
If I move all files from a directory somewhere and then try to remove the
directory, I get an error. Here's a script:
#!//bin/bash
cd /tmp
rm -rf svn wc
svnadmin create svn
svn co file://localhost/tmp/svn wc
cd wc
svn mkdir 1 2
cd 1
touch a
svn add a
cd ..
svn ci -m ""
cd 1
svn mv a ../2
cd ..
svn rm 1
And the output is
subversion/clients/cmdline/delete-cmd.c:47: (apr_err=195006, src_err=0)
svn: Attempting restricted operation for modified resource
svn: Use --force to override this restriction
subversion/libsvn_client/delete.c:90: (apr_err=195006, src_err=0)
svn: '1/a' has local modifications
Hmm.. 1/a is *removed*, and has no local mods.
Is this a bug?
- Volodya
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn rm bug
Posted by Philip Martin <ph...@codematters.co.uk>.
Philip Martin <ph...@codematters.co.uk> writes:
> > Is this a bug?
>
> Perhaps, I don't know.
On reflection, I think it is a bug. rm needs --force when the item
being deleted cannot be recovered. That's not the case here so
--force should not be needed. Fixed in rev 3581.
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn rm bug
Posted by Philip Martin <ph...@codematters.co.uk>.
Vladimir Prus <gh...@cs.msu.su> writes:
> cd 1
> touch a
> svn add a
> cd ..
> svn ci -m ""
> cd 1
> svn mv a ../2
> cd ..
> svn rm 1
>
> And the output is
>
> subversion/clients/cmdline/delete-cmd.c:47: (apr_err=195006, src_err=0)
> svn: Attempting restricted operation for modified resource
> svn: Use --force to override this restriction
> subversion/libsvn_client/delete.c:90: (apr_err=195006, src_err=0)
> svn: '1/a' has local modifications
>
> Hmm.. 1/a is *removed*, and has no local mods.
Depends what you mean by "no local mods" :) It's scheduled for
deletion and the deletion has not been committed, that's a working
copy modification.
> Is this a bug?
Perhaps, I don't know. What about this case
$ svn rm some/wc/file
D some/wc/file
$ svn rm some/wc/file
svn: Attempting restricted operation for modified resource
svn: Use --force to override this restriction
Is that a bug?
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org