# HG changeset patch # User Sushil khanchi # Date 1556350774 -19800 # Node ID 52c1809f35c186940b22875a2cdbc7d7296b8029 # Parent d9016946ec691b791db1efc475cf73513e09a113 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. diff -r d9016946ec69 -r 52c1809f35c1 tests/test-evolve-topic.t --- 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]