]> khamidou — GitHub mirrors - arcanist.git/commit
Remind user about 'arc amend' when they try to land a branch onto itself
authorepriestley <git@epriestley.com>
Wed, 23 May 2012 18:40:20 +0000 (11:40 -0700)
committerepriestley <git@epriestley.com>
Wed, 23 May 2012 18:55:30 +0000 (11:55 -0700)
commit833ae9c152a01d916c7b8b174c8a0b6d3e682ee9
tree6aa95b576011ab22dd66f78342adcfc158a329a4
parent833e8355d8dc6ca4d6eef6803fdc8819819e02ab
Remind user about 'arc amend' when they try to land a branch onto itself

Summary: If you develop in "master" and try to "arc land", you get an error. You can reasonably "arc amend" in this situation, most of the time. Give the user an explicit pointer.

Test Plan:
  $ arc land master
  Usage Exception: You can not land a branch onto itself -- you are trying to
  land 'master' onto 'master'. For more information on how to push changes, see
  'Pushing and Closing Revisions' in 'Arcanist User Guide: arc diff' in the
  documentation. You may be able to 'arc amend' instead.

Reviewers: csilvers, btrahan

Reviewed By: csilvers

CC: aran
Differential Revision: https://secure.phabricator.com/D2547
src/workflow/land/ArcanistLandWorkflow.php