[MERGE] Add Branch support to CommitBuilder

Jelmer Vernooij jelmer at samba.org
Wed Jan 17 17:47:09 GMT 2007


On Wed, 2007-01-17 at 11:14 +1100, Martin Pool wrote: 
> On 16 Jan 2007, Jelmer Vernooij <jelmer at samba.org> wrote:
> > The attached patch lets CommitBuilder take care of updating the branch
> > revision history. It updates the master branch and optionally the local
> > branch, if specified.
> > 
> > This fixes https://bugs.launchpad.net/ubuntu/+source/bzr/+bug/79330
> > 
> > No backwards compatibility for older versions of CommitBuilder is
> > provided. Is that ok, given the number of custom CommitBuilders
> > (bzr-svn's is the only I'm aware of), or should there be backwards
> > compatibility?
> I think that is ok, though it deserves a mention in the 'internals'
> section of the news file.
Fixed. 

> It seems a bit unfortunate that this needs to touch so many places in
> repository.py, but i suppose that's because get_commit_builder is
> overridden just to check the parameters.  We could clean that up by
> having downcalls to set these policies.  Also it seems that the
> repository rarely cares about the parameters - it could just return the
> commit builder class? - which would reduce the appearance of long
> argument dicts being passed around.
> 
> +0.9 from me, just because it adds more redundancy.
I've attached an update of the bundle. The commit builder class is now
returned by the repositoryformat. Does this look better?

Cheers,

Jelmer

-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bzr-commit-edit-branch.bundle.diff
Type: text/x-patch
Size: 61844 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070117/22bcd65c/attachment-0001.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070117/22bcd65c/attachment-0001.pgp 


More information about the bazaar mailing list