Skip to content

Error using a repository with a unicode primary bookmark name #5359

@Nemo157

Description

@Nemo157

Description

Attempting to use a repository that uses a unicode primary bookmark name fails. Commenting out the trunk() alias in the local config avoids the issue, and afaict all commands work correctly with the bookmark name (except where they need to know the head is immutable or primary).

Steps to Reproduce the Problem

> jj git clone https://github.com/Nemo157/ennead
Fetching into new repo in "/tmp/scratch.2025-01-14T14-08.do3GxX/ennead"
bookmark: κεφάλαιος@origin [new] untracked
Setting the revset alias "trunk()" to "κεφάλαιος@origin"
Working copy now at: rowmrups e527c90d (empty) (no description set)
Parent commit      : zsqrywow cf4d6273 κεφάλαιος | fix dithering functions for non-target size images
Added 23 files, modified 0 files, removed 0 files
> cd ennead
> jj log
Config error: Invalid `revset-aliases.immutable_heads()`
Caused by:
1:  --> 1:1
  |
1 | builtin_immutable_heads()
  | ^-----------------------^
  |
  = In alias "builtin_immutable_heads()"
2:  --> 1:9
  |
1 | present(trunk()) | tags() | untracked_remote_bookmarks()
  |         ^-----^
  |
  = In alias "trunk()"
3:  --> 1:1
  |
1 | κεφάλαιος@origin
  | ^---
  |
  = expected <identifier> or <expression>
For help, see https://martinvonz.github.io/jj/latest/config/.
> cat .jj/repo/config.toml
[revset-aliases]
"trunk()" = "κεφάλαιος@origin"

Specifications

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions