[PATCH 3 of 7 STABLE] doc: add description about file patterns for amend committing

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Sun Apr 22 10:40:28 CDT 2012


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1335108650 -32400
# Branch stable
# Node ID 265b1cc74c2d0c3a021b3e27bdffb993ca940fb0
# Parent  d5c200655e65e949e923d4aff372fd4b9ac71994
doc: add description about file patterns for amend committing

file pattern for commit command works differently between normal
committing and amend one, but not yet documented about it.

diff -r d5c200655e65 -r 265b1cc74c2d mercurial/commands.py
--- a/mercurial/commands.py	Mon Apr 23 00:30:45 2012 +0900
+++ b/mercurial/commands.py	Mon Apr 23 00:30:50 2012 +0900
@@ -1195,6 +1195,10 @@
     specified. When a message isn't specified on the command line,
     the editor will open with the message of the amended commit.
 
+    If file patterns are specified to amend committing, they are used
+    only to include changes from working directory, not to pick up changed
+    files from ones already contained in the parent.
+
     It is not possible to amend public changesets (see :hg:`help phases`)
     or changesets that have children.
 


More information about the Mercurial-devel mailing list