[PATCH] cat command: documented the output formats %R, %H and %h
Simon H.
simohe at besonet.ch
Thu Oct 9 04:31:05 CDT 2008
# HG changeset patch
# User Simon Heimberg <simohe at besonet.ch>
cat command: documented the output formats %R, %H and %h
diff -r 9e6d6568bf7a mercurial/commands.py
--- a/mercurial/commands.py Mon Sep 29 12:12:53 2008 +0200
+++ b/mercurial/commands.py Wed Oct 01 09:33:42 2008 +0200
@@ -507,6 +507,9 @@
%s basename of file being printed
%d dirname of file being printed, or '.' if in repo root
%p root-relative path name of file being printed
+ %R revision number of changeset (local to this repo)
+ %H changeset ID, 40 characters
+ %h short changeset ID, first 12 characters
"""
ctx = repo[opts['rev']]
err = 1
More information about the Mercurial-devel
mailing list