Mercurial > evolve
view debian/changelog @ 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 | 4d5d101e878f |
children | b6acfd96c858 |
line wrap: on
line source
mercurial-evolve (4.1.0-1) unstable; urgency=medium * new upstream release -- Pierre-Yves David <pyd@marginatus.alto.octopoid.net> Fri, 08 Aug 2014 23:15:11 -0700 mercurial-evolve (4.0.1-1) unstable; urgency=medium * new upstream release -- Pierre-Yves David <pyd@marginatus.alto.octopoid.net> Fri, 08 Aug 2014 15:50:09 -0700 mercurial-evolve (4.0.0-1) unstable; urgency=low [ Julien Cristau ] * New upstream release. [ Pierre-Yves David ] * new upstream release -- Pierre-Yves David <pyd@marginatus.alto.octopoid.net> Fri, 08 Aug 2014 15:48:16 -0700 mercurial-evolve (3.1.0-1) UNRELEASED; urgency=low * New upstream release. -- Pierre-Yves David <pierre-yves.david@logilab.fr> Mon, 04 Mar 2013 18:02:15 +0100 mercurial-evolve (2.1.0-1) UNRELEASED; urgency=low * New upstream release -- Pierre-Yves David <pierre-yves.david@logilab.fr> Mon, 03 Dec 2012 15:19:19 +0100 mercurial-evolve (1.1.0-1) UNRELEASED; urgency=low * New upstream release. -- Pierre-Yves David <pierre-yves.david@logilab.fr> Tue, 20 Nov 2012 16:28:12 +0100 mercurial-evolve (1.0.2-1) UNRELEASED; urgency=low * New upstream Release -- Pierre-Yves David <pierre-yves.david@logilab.fr> Wed, 19 Sep 2012 17:38:47 +0200 mercurial-evolve (1.0.1-1) UNRELEASED; urgency=low * New bug fix release * remove conflicting __init__.py -- Pierre-Yves David <pierre-yves.david@logilab.fr> Fri, 31 Aug 2012 11:31:03 +0200 mercurial-evolve (1.0.0-1) UNRELEASED; urgency=low * Initial release. -- Julien Cristau <jcristau@debian.org> Fri, 24 Aug 2012 16:46:30 +0200