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

Re: Bug with deleted and copied directory

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 30 Oct 2008 23:41:16 +0200 (Jerusalem Standard Time)

Michael Abbott wrote on Tue, 21 Oct 2008 at 06:11 -0000:
> svn: Commit succeeded, but other errors follow:
> svn: Error bumping revisions post-commit (details follow):
> svn: Directory '/tmp/repo/release/1-18/subdir' is missing

You don't say how you reproduce this error...

> $ find -name .svn -prune -o -name . -o -print
> ./b
> ./a
> ./a/a
> ./a/a/a

Very confusing. Try to be more creative with the dirnames next time.

> $ svn status
> $ svn rm a/a
> D a/a/a/x
> D a/a/a
> D a/a
> $ svn cp a b/a
> A b/a
> $ svn status
> D a/a
> D a/a/a
> D a/a/a/x
> A + b/a
> D + b/a/a
> D + b/a/a/a
> D + b/a/a/a/x
> $ svn commit -m testing
> Deleting a/a
> Adding b/a
> Deleting b/a/a
> Adding b/a/y
> Committed revision 828.
> $
> I'm sure it isn't right that the a/a subdirectory is added to b and then
> promptly deleted again! I've certainly met other problems in this area in
> the past, and normally take care not to nest directory modifications like
> this.

That is expected. The folder "a" is copied from its BASE location. The
way to represent the 'rm' you did locally (but did not copy) is to copy
'a' and then 'rm' one of its children; without the 'rm', all of "a"'s
children at its old location would also be its children at the new

(I'm sure someone will correct me if I'm wrong)

> I can see that the workaround is to ensure that a commit always intervenes
> between changing the directory structure and any further modifications.
> My question is this: is this a known (hopefully fixed?) problem?
> P.S. For reference, the true directory name in the original error message
> is: /tmp/publish-prod.W11524/release/ioc/BR01C/DI/1-18/BR01C-DI-IOC-02App
> I'm sure this makes no real difference...

To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-30 22:41:35 CET

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