[PATCH] indent merges more nicely during merge
Robert Collins
robertc at robertcollins.net
Tue Apr 4 03:24:28 BST 2006
On Wed, 2006-03-29 at 05:01 +1100, Martin Pool wrote:
> On 29 Mar 2006, Robert Collins <robertc at robertcollins.net> wrote:
> > This patch makes log indent merges more prettily and ensures full
> > topological order within merge regions.
>
> This looks much much nicer. +1 to merge, with just a couple of
> comments, which need not be done right now.
>
> > ------------------------------------------------------------
> > revno: 1591
> > committer: Canonical.com Patch Queue Manager<pqm at pqm.ubuntu.com>
> > branch nick: +trunk
> > timestamp: Mon 2006-03-20 10:33:11 +0000
> > message:
> > (mbp) pycurl bugfixes, robert's knit performance stuff
> > ------------------------------------------------------------
> > merged: mbp at sourcefrog.net-20060320095825-ed99032ef9743cc8
> > committer: Martin Pool <mbp at sourcefrog.net>
> > branch nick: bzr.mbp.integration
> > timestamp: Mon 2006-03-20 09:58:25 +0000
> > message:
> > [merge] robert's knit-performance work
>
> I think we could omit the merged revision-id here; the indenting makes
> it clear that it was merged.
I think we should show some identifier though... perhaps the revno on
that branch ?
> > + # but we dont have a nice pattern matcher hooked up yet, so:
> > + # we check for the indenting of the commit message:
> > + self.assertTrue(' merge branch 1' in out)
> > + self.assertTrue(' merge branch 2' in out)
> > + self.assertTrue(' branch 2' in out)
> > + self.assertTrue(' branch 1' in out)
> > + self.assertTrue(' first post' in out)
> > + self.assertEqual('', err)
>
> Well, you can compare the whole string to a sinlge long regexp, which
> would allow you just stub out the revision-ids and the dates with .*.
> (If there's a mismatch it may be a bit hard to see exactly where the
> problem is.)
I plan to bring in doctest style pattern matching which is -much- nicer
than regexps. Are you happy for this to ride until I do that ?
Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060404/78a55282/attachment.pgp
More information about the bazaar
mailing list