Patchwork [4,of,5] templates: add a default template style for status

login
register
mail settings
Submitter Matt Mackall
Date June 10, 2015, 11:09 p.m.
Message ID <dfd4ad8ad468bbff6f39.1433977788@ruin.waste.org>
Download mbox | patch
Permalink /patch/9596/
State Accepted
Headers show

Comments

Matt Mackall - June 10, 2015, 11:09 p.m.
# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 1433964905 18000
#      Wed Jun 10 14:35:05 2015 -0500
# Node ID dfd4ad8ad468bbff6f39251ae50373b293ca4d0f
# Parent  82d8c52373f2f06112c902aaf307c58143bbf32e
templates: add a default template style for status

Color doesn't work yet, so no labels here.

Patch

diff -r 82d8c52373f2 -r dfd4ad8ad468 mercurial/templates/map-cmdline.default
--- a/mercurial/templates/map-cmdline.default	Wed Jun 10 14:33:38 2015 -0500
+++ b/mercurial/templates/map-cmdline.default	Wed Jun 10 14:35:05 2015 -0500
@@ -71,3 +71,5 @@ 
                                        'description:')}
                                 {label('ui.note log.description',
                                        '{desc|strip}')}\n\n")}'
+
+status = '{status} {path}\n{if(copy, "  {copy}\n")}'