[PATCH 1 of 3] histeditrule: split __str__ property into prefix and desc

Yuya Nishihara yuya at tcha.org
Fri Nov 8 21:05:55 EST 2019


On Thu, 07 Nov 2019 15:31:46 -0500, Jordi GutiƩrrez Hermoso wrote:
> # HG changeset patch
> # User Jordi GutiƩrrez Hermoso <jordigh at octave.org>
> # Date 1572478029 14400
> #      Wed Oct 30 19:27:09 2019 -0400
> # Node ID 45aea2365bcb5f89d20bb1907d75175246da3d05
> # Parent  ab9b0a20b9e6b7f1f16f643486ff20a6d44ca2d5
> histeditrule: split __str__ property into prefix and desc


>          # The carets point to the changeset being folded into ("roll this
>          # changeset into the changeset above").
> +        return b'{}{}'.format(self.prefix, self.desc)

Use printf-style formatting. b''.format() doesn't work on Python 3.


More information about the Mercurial-devel mailing list