[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Tailor

From: Nathaniel Smith
Subject: Re: [Monotone-devel] Tailor
Date: Wed, 11 Oct 2006 10:32:34 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

On Wed, Oct 11, 2006 at 01:03:01PM +0200, rghetta wrote:
> Tailor always executes renames before additions.
> IHMO the source repository is corrupt or the backend outputs impossibile 
> operations (renaming statistics to statistics/squid makes no sense).
> Note that all renames involving statistics fail, suggesting a problem 
> with this directory.

Always executing renames before additions is simply broken.
is a good summary of the correct algorithm for applying arbitrary
changes to trees (this was written about bzr, but they happened to
re-invent the same algorithm mtn uses, suggesting that it is indeed
the right way :-)).

> Directory addition in Tailor adds only the directory itself, without 
> files.  Directory addition in Monotone is recursive, and adds also 
> contained files and directories. Due to Tailor internals, this 
> difference can interfere with renames, so the monotone backend strips 
> away directory additions (note that adding a/b adds automagically the 
> directory a).

This might have worked better before 0.26, when mtn started tracking
directories... passing --depth to add might let you work around it.
OTOH, it might not be the problem at all, since add foo/bar should
implicitly add foo/ if it hasn't been added before -- _if_ you have
correctly told monotone to forget about some pre-existing file named

-- Nathaniel

Details are all that matters; God dwells there, and you never get to
see Him if you don't struggle to get them right. -- Stephen Jay Gould

reply via email to

[Prev in Thread] Current Thread [Next in Thread]