Mercurial > evolve
changeset 4680:52c1809f35c1
topic: add tests which demonstrate topicset failure of FilteredRepoLookupError
When topics are used, it fails to find hidden revs mentioned in a revset as
we are not using unfiltered view of repo. Next patch will fix it.
author | Sushil khanchi <sushilkhanchi97@gmail.com> |
---|---|
date | Sat, 27 Apr 2019 13:09:34 +0530 |
parents | d9016946ec69 |
children | 3027005c42c3 |
files | tests/test-evolve-topic.t |
diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-evolve-topic.t Sat Jun 08 16:57:34 2019 +0800 +++ b/tests/test-evolve-topic.t Sat Apr 27 13:09:34 2019 +0530 @@ -439,3 +439,24 @@ atop:[s3] add hhh move:[s5] add jjj working directory is now at 2c295936ac04 + +Test to make sure that evolve don't crash with FilteredRepoLookupError when obsolete revs are in play: +------------------------------------------------------------------------------------------------------ + +update to obsolete revision + $ hg up -r 'min(desc("add fff"))' --hidden + switching to topic foo + 2 files updated, 0 files merged, 1 files removed, 0 files unresolved + updated to hidden changeset 6a6b7365c751 + (hidden revision '6a6b7365c751' was rewritten as: 2c295936ac04) + working directory parent is obsolete! (6a6b7365c751) + (use 'hg evolve' to update to its successor: 2c295936ac04) + +Evolve: + $ hg evolve + update:[26] add fff + switching to topic bar + 3 files updated, 0 files merged, 0 files removed, 0 files unresolved + working directory is now at 2c295936ac04 + abort: filtered revision '3'! + [255]