How to get the diff between two arbitrary remote revisions?

John A Meinel john at arbash-meinel.com
Fri Nov 18 14:31:57 GMT 2005


Kevin Smith wrote:
> Jan Hudec wrote:
>> On Thu, Nov 17, 2005 at 18:10:08 +0100, Matthieu Moy wrote:
>>
>>> Jan Hudec <bulb at ucw.cz> writes:
>>>
>>>> Of course their 'branches' are no branches, but rather 'multibranches'. 
>>>
>>> I don't know more than "diff/add/commit/status" in mercurial, but from
>>> what you describe, mercurial's "branches" are what bzr will implement
>>> as "repository" (or "archive").
>>
>>
>> With two significant differences:
>>     - As I read the discussion, bzr archives are going to require
>> explicit
>>       names for the heads (btw. git does too, or at least that I was
>> told).
>>       Mercurial does not.
>>     - Mercurial does not plan decoupling the storage and working copy.
>> Though
>>       with their model there is really no principial reason for the
>> coupling.
>>       (The reason is really principial only in Darcs (everything is a
>> set of
>>       changesets there), but with bzr 'privileged head' it's a lot more
>>       justified than in mercurial.)
>>
> 
> One more difference, at least in practice if not as an absolute
> technical limitation:
> 
> An hg "branch" can have multiple heads, but only contains work for a
> single project. As I understand it, a bzr repo would be more similar to
> a CSV repo or a monotone database, potentially containing branches of
> several completely unrelated projects.
> 
> 
> To summarize:
> 
> With darcs, a working tree cannot contain anything other than what is in
> the branch/repo. To revert the working tree to an earlier version, you
> must discard that history from the repo.
> 
> With hg, a branch can contain multiple heads, and the working tree can
> be checked out from any of them, or from any other version in the
> history. Typically you would reposition the working directory by
> specifying a tag name, although you can give a revision hash.
> 
> I'm not as clear on bzr. Is the intention that a bzr branch will only
> contain one head, but the working directory can be checked out from any
> version in the history?
> 
> Kevin
> 
> 

Well, the repository can contain multiple heads. And it certainly would
be possible to update the ui level so that you could switch to a
different revision upon request.
With the coming "checkout" code, there will be a much stronger
separation between the branch information, the repository information,
and the working directory information.
With checkouts, you can definitely point earlier in a branch history
(since the branch may have been updated while you weren't looking).
Since the path through the revision history is what we are defining as a
branch, it seems that a branch has only one head by definition. But that
doesn't mean that with a "standalone branch" you wouldn't be able to
investigate other branches. (Obviously you can in a "repository branch",
so I'm making the distinction).

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051118/bb6aa380/attachment.pgp 


More information about the bazaar mailing list