Skip to content

"show revisions changing file" on subdirectory files causes "Error: Failed to parse revset: Syntax error" in Windows #290

@vabock

Description

@vabock

Description

In Details view(press lowercase L), press *(show revisions changing file) on a file in a subdirectory shows "(no matching revisions)" and error message.

 ┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
 │ Error: Failed to parse revset: Syntax error                                                                                    │
 │ Caused by:  --> 1:11                                                                                                           │
 │   |                                                                                                                            │
 │ 1 | files("src\lib.rs")                                                                                                        │
 │   |           ^---                                                                                                             │
 │   |                                                                                                                            │
 │   = expected <string_escape> or <string_content>                                                                               │
 │ Hint: See https://jj-vcs.github.io/jj/latest/revsets/ or use `jj help -k revsets` for revsets syntax and how to quote symbols. │
 │                                                                                                                                │
 └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘

Directory structure used for testing:

jjui_test/
|-- .jj/
|-- Cargo.toml
`-- src/
    `-- lib.rs

Replacing backslashes with slashes in revset(e.g., files("src/lib.rs")), worked correctly.

Steps to Reproduce the Problem

  1. press l(lowercase L)
  2. Select a file in a subdirectory (e.g., "src/lib.rs").
  3. press *

Expected Behavior

Revisions containing selected file are displayed.

Actual Behavior

"(no matching revisions)" is displayed in center of the screen and error message is shown.

Specifications

  • Platform: Windows 11 Pro 24H2
  • Version: jjui 0.9.2, jj 0.32.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions