some comments on bazaar-ng
Martin Pool
mbp at sourcefrog.net
Wed Apr 13 00:27:53 BST 2005
On Tue, 2005-04-12 at 18:20 +0200, denys.duchier at lifl.fr wrote:
> On the bazzar-ng web site, you suggested to send comments to you, so here goes:
>
> The available documentation strongly suggests that your perspective is that
> objects (e.g. files and directories) are named. This, I find very odd.
>
> My own intuitions about an archive is that it is a mapping from ids to objects,
> where each object is basically a pair (type,data). For files the data is just a
> sequence of bytes, while for directories it is a mapping from names to ids.
> (there is a distinguished root directory object).
>
> In this view, objects do not have names. In fact, it is easy to represent hard
> links since these are simply multiple entries in directories for the same object
> id.
Hi,
Thanks for commenting.
It depends what you mean by "names". The filename for a particular file
in a revision is defined by the directory that contains in it a
particular revision and is indeed a quite transient thing.
Objects do have a long-term ID, which is used to manage renames etc.
What I suggest you do is have a look in the .bzr directory of a tree to
get a good sense of how everything connects up.
> A directory delta is a set of deletions/additions of entries (i.e. mappings from
> name to id).
Yes.
> With this approach, there is also no reason to distinguish moves from renames.
> They are exactly the same (but perhaps I am overlooking some practical
> consideration).
There is no technical distinction. It may be useful to make a
distinction in the user interface; see the list thread about this last
week.
--
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050413/431d83e5/attachment.pgp
More information about the bazaar
mailing list