Mercurial > hg-stable
comparison mercurial/commands.py @ 14986:70e11de6964d
export: add %m to file format string (first line of the commit message)
$ hg commit -m "Initial commit"
$ hg export -o %m.patch tip #It creates Initial_commit.patch file.
author | Andrzej Bieniek <andyhelp@gmail.com> |
---|---|
date | Sat, 30 Jul 2011 11:08:45 +0100 |
parents | ce7e3014fda7 |
children | caa5283390f8 |
comparison
equal
deleted
inserted
replaced
14985:dbf91976f900 | 14986:70e11de6964d |
---|---|
2227 :``%H``: changeset hash (40 hexadecimal digits) | 2227 :``%H``: changeset hash (40 hexadecimal digits) |
2228 :``%N``: number of patches being generated | 2228 :``%N``: number of patches being generated |
2229 :``%R``: changeset revision number | 2229 :``%R``: changeset revision number |
2230 :``%b``: basename of the exporting repository | 2230 :``%b``: basename of the exporting repository |
2231 :``%h``: short-form changeset hash (12 hexadecimal digits) | 2231 :``%h``: short-form changeset hash (12 hexadecimal digits) |
2232 :``%m``: first line of the commit message (only alphanumeric characters) | |
2232 :``%n``: zero-padded sequence number, starting at 1 | 2233 :``%n``: zero-padded sequence number, starting at 1 |
2233 :``%r``: zero-padded changeset revision number | 2234 :``%r``: zero-padded changeset revision number |
2234 | 2235 |
2235 Without the -a/--text option, export will avoid generating diffs | 2236 Without the -a/--text option, export will avoid generating diffs |
2236 of files it detects as binary. With -a, export will generate a | 2237 of files it detects as binary. With -a, export will generate a |