Patchwork [2,of,7] help: document about "identify" template keywords

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 7, 2018, 2:32 p.m.
Message ID <5125d75db27c42430eec.1538922745@mimosa>
Download mbox | patch
Permalink /patch/35534/
State New
Headers show

Comments

Yuya Nishihara - Oct. 7, 2018, 2:32 p.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1538920597 -32400
#      Sun Oct 07 22:56:37 2018 +0900
# Node ID 5125d75db27c42430eec6c8462e2890894be07b2
# Parent  b1f2c9e00be3c547fc094ba25eb84db6e965adef
help: document about "identify" template keywords

Patch

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3056,6 +3056,16 @@  def identify(ui, repo, source=None, rev=
 
     .. container:: verbose
 
+      Template:
+
+      The following keywords are supported in addition to the common template
+      keywords and functions. See also :hg:`help templates`.
+
+      :dirty:   String. Character ``+`` denoting if the working directory has
+                uncommitted changes.
+      :id:      String. One or two nodes, optionally followed by ``+``.
+      :parents: List of strings. Parent nodes of the changeset.
+
       Examples:
 
       - generate a build identifier for the working directory::