Mercurial > evolve
comparison README @ 1106:6b0cf1b73693 stable
evolve: replace each obsolete sha1 in the description with its latest successor
Obsolete csets are hidden by default and don't get pushed to the parent repo.
In order to avoid broken references in commit messages, it makes sense to evolve
those references to the latest and greatest successor, as each cset containing
them is evolved. Of course, stale references can still occur if a commit in
branch 'A' references something in branch 'B', and that something in 'B' is
evolved but 'A' isn't subsequently evolved.
This alleviates the user that is evolving a series of commits from having to
1) recognize that there is a hash that needs updating in any one of the series
2) look up the latest successor manually
3) hg amend -e
The regular expression for matching and the logic for replacing are borrowed
from the convert extension [1].
It might be nice for the output to state the reason that the reference couldn't
be updated (it was pruned, split or diverged), but that may be excessive for
something only displayed in verbose mode. (Maybe it should be a ui.status()
instead?)
[1] http://selenic.com/hg/rev/45562379ce4e
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 09 Aug 2014 19:12:16 -0400 |
parents | cb36a4eb0157 |
children | 1c227ecb744d |
comparison
equal
deleted
inserted
replaced
1105:836c4128c027 | 1106:6b0cf1b73693 |
---|---|
59 | 59 |
60 4.2.0 -- | 60 4.2.0 -- |
61 | 61 |
62 - uncommit: add a --rev argument | 62 - uncommit: add a --rev argument |
63 - evolve: add a `working directory now at xxxxxxxxxx` message | 63 - evolve: add a `working directory now at xxxxxxxxxx` message |
64 - evolve: automatically translate obsolete hashes when evolving | |
64 - properly skip marker creating if patch apply cleanly | 65 - properly skip marker creating if patch apply cleanly |
65 - prune: work around a massive slowdown from lazy revset | 66 - prune: work around a massive slowdown from lazy revset |
66 - grab: "fix" the grab alias on window | 67 - grab: "fix" the grab alias on window |
67 | 68 |
68 4.1.0 -- 2014-08-08 | 69 4.1.0 -- 2014-08-08 |