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: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Sun Aug 22 21:11:11 2004