From patchwork Wed Nov 15 12:05:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1, of, 2] hgweb: split long lines in gitweb and monoblue (changeset summary and tags) From: Anton Shestakov X-Patchwork-Id: 25577 Message-Id: <863decb0e33c8b4824a4.1510747506@neuro> To: mercurial-devel@mercurial-scm.org Date: Wed, 15 Nov 2017 20:05:06 +0800 # HG changeset patch # User Anton Shestakov # Date 1510733160 -28800 # Wed Nov 15 16:06:00 2017 +0800 # Node ID 863decb0e33c8b4824a45708e5d1ad533f086529 # Parent 0564e7c7f4cdbb98ea0ffb3f2c26946dbc0599ac # EXP-Topic hgweb-cleanup hgweb: split long lines in gitweb and monoblue (changeset summary and tags) diff --git a/mercurial/templates/gitweb/changelogentry.tmpl b/mercurial/templates/gitweb/changelogentry.tmpl --- a/mercurial/templates/gitweb/changelogentry.tmpl +++ b/mercurial/templates/gitweb/changelogentry.tmpl @@ -1,5 +1,9 @@
-{date|rfc822date}{desc|strip|firstline|escape|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag} + + {date|rfc822date} + {desc|strip|firstline|escape|nonempty} + {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag} +
-{desc|strip|escape|firstline|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag} + + {desc|strip|escape|firstline|nonempty} + {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag} +
diff --git a/mercurial/templates/monoblue/changelogentry.tmpl b/mercurial/templates/monoblue/changelogentry.tmpl --- a/mercurial/templates/monoblue/changelogentry.tmpl +++ b/mercurial/templates/monoblue/changelogentry.tmpl @@ -1,4 +1,9 @@ -

{desc|strip|firstline|escape|nonempty} {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}

+

+ + {desc|strip|firstline|escape|nonempty} + {inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag} + +

43c799df6e759d8c40cba617 @@ -560,9 +560,9 @@ Set up the repo graph | files | zip | (0)tip
- Thu, 01 Jan 1970 00:00:00 +0000second xyzzy + changeset
- Thu, 01 Jan 1970 00:00:00 +0000first + changeset
(0)tip
@@ -709,9 +709,9 @@ Set up the repo
  • graph
  • files
  • zip
  • -

    third default tip

    -

    second xyzzy

    -

    first

    + + + (0)tip $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph?style=monoblue' | egrep $REVLINKS @@ -753,16 +753,16 @@ Set up the repo $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'shortlog?style=monoblue&rev=all()' | egrep $REVLINKS
  • zip
  • -

    third default tip

    -

    second xyzzy

    -

    first

    + + + $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'rev/xyzzy?style=monoblue' | egrep $REVLINKS
  • graph
  • files
  • raw
  • zip
  • -

    second xyzzy

    +
    a7c1559b7bba
    43c799df6e75
    9d8c40cba617
    @@ -789,8 +789,8 @@ Set up the repo
  • graph
  • files
  • zip
  • -

    second xyzzy

    -

    first

    + + (0)tip $ "$TESTDIR/get-with-headers.py" $LOCALIP:$HGPORT 'graph/xyzzy?style=monoblue' | egrep $REVLINKS
    a7c1559b7bba