Mercurial > hg
view tests/test-ancestor.py.out @ 20771:434619dae569 stable
amend: save commit message into ".hg/last-message.txt"
Before this patch, commit message (may be manually edited) for "commit
--amend" is never saved into ".hg/last-message.txt", because it uses
"localrepository.commitctx()" instead of "localrepository.commit()":
saving into ".hg/last-message.txt" is executed only in the latter.
This patch saves commit message for "commit --amend" into
".hg/last-message.txt" just after user editing.
This is the simplest implementation to fix on stable. Editing and
saving commit message for memctx should be centralized into the
framework like "localrepository.commit()" with "editor" argument or so
in the future.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Wed, 19 Mar 2014 01:07:41 +0900 |
parents | f7f8159caad3 |
children | 731b2a90983b |
line wrap: on
line source
% ancestors of [] and not of [1] [] % ancestors of [] and not of [] [] % ancestors of [12] and not of [] [0, 1, 2, 4, 6, 7, 9, 12] % ancestors of [0] and not of [0] [] % ancestors of [4, 5, 6] and not of [6, 5, 4] [] % ancestors of [-1] and not of [12] [] % ancestors of [12] and not of [-1] [0, 1, 2, 4, 6, 7, 9, 12] % ancestors of [12] and not of [9] [12] % ancestors of [9] and not of [12] [] % ancestors of [12, 9] and not of [7] [6, 9, 12] % ancestors of [7, 6] and not of [12] [] % ancestors of [10] and not of [11, 12] [5, 10] % ancestors of [11] and not of [10] [3, 7, 11] % ancestors of [11] and not of [10, 12] [3, 11] % ancestors of [12] and not of [10] [6, 7, 9, 12] % ancestors of [12] and not of [11] [6, 9, 12] % ancestors of [10, 11, 12] and not of [13] [0, 1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12] % ancestors of [13] and not of [10, 11, 12] [8, 13] % lazy ancestor set for [], stoprev = 0, inclusive = False [] % lazy ancestor set for [11, 13], stoprev = 0, inclusive = False [7, 8, 3, 4, 1, 0] % lazy ancestor set for [11, 13], stoprev = 0, inclusive = True [11, 13, 7, 8, 3, 4, 1, 0] % lazy ancestor set for [11, 13], stoprev = 6, inclusive = False [7, 8] % lazy ancestor set for [11, 13], stoprev = 6, inclusive = True [11, 13, 7, 8]