]> khamidou — GitHub mirrors - arcanist.git/commit
Use .^ instead of HEAD^ for mercurial
authorJamie Wong <jamie.lf.wong@gmail.com>
Fri, 8 Jun 2012 20:57:50 +0000 (16:57 -0400)
committerJamie Wong <jamie.lf.wong@gmail.com>
Mon, 11 Jun 2012 14:00:02 +0000 (10:00 -0400)
commitbcbe1737b800603e44653072afa45064277c4fde
tree603ae1e91d32fa382045d3e01348502eac42b74d
parent08b53c3803061eb35d1aefa18c3f083fbe2b8d51
Use .^ instead of HEAD^ for mercurial

Summary:
##arc amend## in a mercurial repo was failing with this message

    Usage Exception: Commit 'HEAD^' is not a valid Mercurial commit identifier.

mercurial's .^ is about the same thing as git's HEAD^

Test Plan:
##arc amend## in a mercurial repo with ##"immutable_history" : "false"## in the
##.arcconfig##.

Reviewers: epriestley

Reviewed By: epriestley

CC: vrana, aran, Korvin
Differential Revision: https://secure.phabricator.com/D2690
src/workflow/ArcanistAmendWorkflow.php