comparison tests/test-shelve.t @ 38338:2313a3599e41

shelve: wider check for successful abort in test The test was previously focusing on checking that the "sub-rebase" aborted properly. Since rebase is an implementation details we should also check for other messages. Differential Revision: https://phab.mercurial-scm.org/D3686
author Boris Feld <boris.feld@octobus.net>
date Mon, 28 May 2018 16:55:11 +0200
parents 756a7682837f
children 50f5fc232c16
comparison
equal deleted inserted replaced
38337:756a7682837f 38338:2313a3599e41
1287 warning: conflicts while merging root! (edit, then use 'hg resolve --mark') 1287 warning: conflicts while merging root! (edit, then use 'hg resolve --mark')
1288 unresolved conflicts (see 'hg resolve', then 'hg unshelve --continue') 1288 unresolved conflicts (see 'hg resolve', then 'hg unshelve --continue')
1289 [1] 1289 [1]
1290 $ sed 's/ae8c668541e8/123456789012/' .hg/shelvedstate > ../corrupt-shelvedstate 1290 $ sed 's/ae8c668541e8/123456789012/' .hg/shelvedstate > ../corrupt-shelvedstate
1291 $ mv ../corrupt-shelvedstate .hg/histedit-state 1291 $ mv ../corrupt-shelvedstate .hg/histedit-state
1292 $ hg unshelve --abort 2>&1 | grep 'rebase aborted' 1292 $ hg unshelve --abort 2>&1 | grep 'aborted'
1293 rebase aborted 1293 rebase aborted
1294 unshelve of 'default-01' aborted
1295 $ hg summary
1296 parent: 0:ae8c668541e8 tip
1297 root
1298 branch: default
1299 commit: 1 modified, 1 unknown
1300 update: (current)
1301 phases: 1 draft
1294 $ hg up -C . 1302 $ hg up -C .
1295 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 1303 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1296 1304
1297 $ cd .. 1305 $ cd ..
1298 1306