Patchwork D3690: shelve: actually test corrupted shelve state

login
register
mail settings
Submitter phabricator
Date June 5, 2018, 10:57 a.m.
Message ID <differential-rev-PHID-DREV-t3rfvkdsfzayotsfibys-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/31974/
State Superseded
Headers show

Comments

phabricator - June 5, 2018, 10:57 a.m.
lothiraldan created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The test was previous moving the corrupted shelve state file as an histedit
  state file.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-shelve.t

CHANGE DETAILS




To: lothiraldan, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/tests/test-shelve.t b/tests/test-shelve.t
--- a/tests/test-shelve.t
+++ b/tests/test-shelve.t
@@ -1277,7 +1277,7 @@ 
   unresolved conflicts (see 'hg resolve', then 'hg unshelve --continue')
   [1]
   $ sed 's/ae8c668541e8/123456789012/' .hg/shelvedstate > ../corrupt-shelvedstate
-  $ mv ../corrupt-shelvedstate .hg/histedit-state
+  $ mv ../corrupt-shelvedstate .hg/shelvestate
   $ hg unshelve --abort 2>&1 | grep 'aborted'
   unshelve of 'default-01' aborted
   $ hg summary