[PATCH] paper: use monospace font for parents and children cset id's

Matt Mackall mpm at selenic.com
Mon Apr 25 16:52:43 CDT 2011


On Mon, 2011-04-25 at 23:33 +0200, Adrian Buehlmann wrote:
> # HG changeset patch
> # User Adrian Buehlmann <adrian at cadifra.com>
> # Date 1303760080 -7200
> # Node ID 399c59a799585be1fbbef12759c062ebe0c52193
> # Parent  da65edcac72af707922917d912ae1969495206d0
> paper: use monospace font for parents and children cset id's

The rationale for this isn't obvious to me.

> diff --git a/mercurial/templates/paper/changeset.tmpl b/mercurial/templates/paper/changeset.tmpl
> --- a/mercurial/templates/paper/changeset.tmpl
> +++ b/mercurial/templates/paper/changeset.tmpl
> @@ -51,12 +51,12 @@
>   <th class="date">date</th>
>   <td class="date">{date|date} ({date|age})</td></tr>
>  <tr>
> - <th class="author">parents</th>
> - <td class="author">{parent%changesetparent}</td>
> + <th class="parents">parents</th>
> + <td class="parents">{parent%changesetparent}</td>
>  </tr>
>  <tr>
> - <th class="author">children</th>
> - <td class="author">{child%changesetchild}</td>
> + <th class="children">children</th>
> + <td class="children">{child%changesetchild}</td>
>  </tr>
>  <tr>
>   <th class="files">files</th>
> diff --git a/mercurial/templates/paper/filerevision.tmpl b/mercurial/templates/paper/filerevision.tmpl
> --- a/mercurial/templates/paper/filerevision.tmpl
> +++ b/mercurial/templates/paper/filerevision.tmpl
> @@ -55,12 +55,12 @@
>   <td class="date">{date|date} ({date|age})</td>
>  </tr>
>  <tr>
> - <th class="author">parents</th>
> - <td class="author">{parent%filerevparent}</td>
> + <th class="parents">parents</th>
> + <td class="parents">{parent%filerevparent}</td>
>  </tr>
>  <tr>
> - <th class="author">children</th>
> - <td class="author">{child%filerevchild}</td>
> + <th class="children">children</th>
> + <td class="children">{child%filerevchild}</td>
>  </tr>
>  {changesettag}
>  </table>
> diff --git a/mercurial/templates/static/style-paper.css b/mercurial/templates/static/style-paper.css
> --- a/mercurial/templates/static/style-paper.css
> +++ b/mercurial/templates/static/style-paper.css
> @@ -214,6 +214,11 @@
>    font-family: monospace;
>  }
>  
> +td.parents, td.children {
> +  font-family: monospace;
> +  vertical-align: bottom;
> +}
> +
>  /* Graph */
>  div#wrapper {
>  	position: relative;
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel


-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list