Fastest way to find repository heads?

Robert Collins robertc at robertcollins.net
Wed Jul 8 23:14:39 BST 2009


On Thu, 2009-07-09 at 00:04 +0200, Jelmer Vernooij wrote:
> 
> Admittedly this is something that should ultimately be fixed by making
> "bzr branch" do the right thing and leave a working branch behind, but
> until then I think bzr-git should use dead and live heads rather than
> just live heads. 

While I think it would be nice to do that, I think in terms of tradeoffs
its not worth doing that. Last time I checked, git doesn't do that, and
neither does hg.

Doing it requires two things; a mechanism to signal 'all the data so far
has no gaps that would be filled later in the stream' (at these points
the client could checkpoint, flush a pack, and add a ref) and
topologically sorting and group on the server side to generate batches
that can do this.

The former is relatively easy. The latter is harder to do without
risking significant increases in memory or CPU usage.

-Rob

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090709/25a1ed7e/attachment.pgp 


More information about the bazaar mailing list