Patchwork D8391: histedit: add test that an invalid editor doesn't bork client state

login
register
mail settings
Submitter phabricator
Date April 10, 2020, 3:23 p.m.
Message ID <a273f72058536c2c964f3da892397748@localhost.localdomain>
Download mbox | patch
Permalink /patch/46056/
State Not Applicable
Headers show

Comments

phabricator - April 10, 2020, 3:23 p.m.
Closed by commit rHGbca57ad9e630: histedit: add test that an invalid editor doesn&#039;t bork client state (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8391?vs=21023&id=21025

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8391/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8391

AFFECTED FILES
  tests/test-histedit-non-commute.t

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/test-histedit-non-commute.t b/tests/test-histedit-non-commute.t
--- a/tests/test-histedit-non-commute.t
+++ b/tests/test-histedit-non-commute.t
@@ -300,4 +300,7 @@ 
      summary:     Initial commit
   
 
+An invalid editor shouldn't leave the user in a broken state:
+  $ EDITOR=totally-not-a-thing-unsensible-editor-value hg histedit 4
+
   $ cd ..