Skip to content

Commit

Permalink
Fetch descendants more correctly.
Browse files Browse the repository at this point in the history
See context in [this discussion](#3935 (comment))

Fixes #3947
  • Loading branch information
essiene committed Aug 25, 2024
1 parent f9dc058 commit 63d5615
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/movement_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ impl Direction {
let target_revset = match (self, args.conflict) {
(Direction::Next, true) => start_revset
.children()
.minus(working_revset)
.descendants()
.filtered(RevsetFilterPredicate::HasConflict)
.roots()
.minus(working_revset),
.roots(),
(Direction::Next, false) => start_revset
.descendants_at(args.offset)
.minus(working_revset),
Expand Down

0 comments on commit 63d5615

Please sign in to comment.