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

Re: contradictory error/warning messages about the same subdirectory

From: Dirk Reckmann <dyrgh_at_gmx.de>
Date: 2004-08-22 21:14:37 CEST

Am Sonntag, 22. August 2004 20:56 schrieben Sie:
> On 2004 Aug 22, at 20:49, Dirk Reckmann wrote:
> > Hi Alex!
> Hi! Any reason to keep the mailing list out of this exchange...? Just
> in case, I'm not cc'ing the mlist, just as you didn't.

Sorry, my mistake. Should be fixed by this mail...

> > I can get a working copy in a state as you described by the following
> > transcript:
> Great small-scale reproduction -- thanks!
> > The problem is using "mv" instead of "svn mv", so that "b/a" looks
> > like an
> > directory under version control (because it contains a .svn subdir),
> > but has
> > no entry in the .svn directory of "b". Is this similar to your build
> > script?
> Yes, except that my script uses Python's shutils module, which no doubt
> does the system-calls equivalent of cp (rather than mv) over and over.
> > You might get similar problems when composing your directory tree,
> > that is to
> > be added, by cp'ing directories already under version control instead
> > of "svn
> > cp"ing them.
> Yep, that IS clearly the issue -- thanks!!!
> I still don't know how to fix it, as shutil doesn't know about svn and
> ain't gonna learn anytime soon, I fear.
> What I found does work: prepare the directory, tgz it up into some temp
> file (minus the .svn entries), remove the directory, untar the tgz, and
> THEN finally add it. From your diagnosis I suspect this would work
> too: rm -rf any directory named .svn before the svn add of the newly
> prepared tree. Does that look sensible to you...?

I would guess, that this might work equally well. But i would try to use "svn
mv" or "svn cp" in the first place. Even if shutils does not know about svn,
I suppose that it is possible to run arbitrary command lines from python ;-)
And just in case: there are python bindings for svn.

But I have no experiences with these bindings or with python at all...


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Aug 22 21:11:11 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.