On Wed, Mar 30, 2005 at 08:15:09 -0800, Tom Lord wrote:
> 
> 
>    From: Jan Hudec <[EMAIL PROTECTED]>
> 
>    >    The problem here is, that the indices only contain full path from root
>    >    to the files and their IDs, but not IDs of the parent directories.
> 
>    > You're ahead of me in diagnosis, if you are right (and I'm working
>    > mostly on other things for the next few days).
> 
>    Looking at orig-files-index and mod-files-index (and respective -dirs-)
>    in a changeset, that adds a file, I only see 2 columns: the full name
>    and id of the file. Since there is no other ID and since the dirs inices
>    are empty (so the ids can't be infered from there), I see no way to find
>    the ids, which is how I came to the above conclusion. Perhaps I am missing
>    something.
> 
> Suppose that one line in `mod-*-index' contains an entry for a
> newly added file and another line contanis an entry for the dir
> where that file was added.   Since both are in the `mod' tree, `dopatch'
> can figure out (on the basis of paths) the id of the directory in which
> the new file was added.
> 
> E.g., given MOD entries:
> 
>       a/b     x_b_id
> 
> 
>       a       x_a_id
> 
> where `x_b_id' is a new file or dir, we know that `x_b_id' wants to be
> added in the directory whose id is `x_a_id', no matter what that
> directory happens to be called.

Yes, that _would_ be enough. However, looking at actual patch that adds
files into existing, tagged directory, the directory is not mentioned in
mod-files-index nor mod-dirs-index.

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec <[EMAIL 
PROTECTED]>

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Gnu-arch-users mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-arch-users

GNU arch home page:
http://savannah.gnu.org/projects/gnu-arch/

Reply via email to