D3209: amend: exit 0 if there are no changes
quark (Jun Wu)
phabricator at mercurial-scm.org
Mon Apr 9 21:51:42 EDT 2018
quark added a comment.
I think it depends on what scripts want to do. I guess mpm's original point is, suppose you have a build script, or something that should do nothing if nothing changed, then `hg amend && build_script` just works as expected. If amend returns 0, then it'd be more complex to detect "nothing changed" case.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D3209
To: spectral, #hg-reviewers
Cc: quark, mercurial-devel
More information about the Mercurial-devel
mailing list