You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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/enneadFetching into new repo in "/tmp/scratch.2025-01-14T14-08.do3GxX/ennead"bookmark: κεφάλαιος@origin [new] untrackedSetting 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 imagesAdded 23 files, modified 0 files, removed 0 files
> cd ennead
> jj logConfig 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"
Figured out the actual solution, the config should be:
[revset-aliases]
"trunk()" = "'κεφάλαιος'@origin"
So the error is more that when cloning the repo it doesn't correctly serialize the bookmark name into revset syntax taking into account which bookmark names need escaping.
Tag and bookmark names are usually ASCII, but they occasionally include Latin
or Han characters.
This doesn't fix the serialization problem, but should mitigate jj-vcs#5359.
Tag and bookmark names are usually ASCII, but they occasionally include Latin
or Han characters.
This doesn't fix the serialization problem, but should mitigate #5359.
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
Specifications
libssh2
for authentication with Git hosts #3191)The text was updated successfully, but these errors were encountered: