-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fossil 2.11 breaks detection #626
Comments
Nice reproduction steps, easy to reproduce this one. I'll have to get an older version of fossil to make sure a fix works on that too. Hopefully I can have a fix out later today. |
Fixed in v1.12.1. This should work for any version of Fossil. |
@Rycieos I'm getting v1.12.1 into HomeBrew with Homebrew/homebrew-core#63465. |
Probably not the right place to ask this, but it is topical on Fossil. I'm working on a large rework of Liquidprompt for the v2.0 version, and am currently working on a unified interface for all of the VCSs that Liquidprompt supports. I've finished the work for Git and Fossil, and both now use the same formatting function, so prompts in both should look similar. @tribut and @milouse, as you are active Fossil users, could you give feedback on it? I'm looking for any kind of feedback here, even improvement suggestions if you have them. The version to test is on the rework branch. The Fossil code can be found here: The worst thing that I discovered while learning Fossil was that you can put literally any character in a branch name! Even a null byte, though that seems to terminate the string. This means you can have newlines and other whitespace in a branch name. Not ideal for displaying that in Liquidprompt:
Anyway, anything you could help with would be appreciated! |
Hi @Rycieos and thank you for pinging me :) After reading this issue, I’m sorry someone else than me felt into it, as I already propose a change some time ago in a PR (#557), still waiting for reviewer. However I’m glad to see someone new is again in charge of this very nice project! I wish you all the best! Regarding your question about fossil, I must admit I’m no more a fossil user myself. It is a nice project too, but my day-to-day use of git make me really fall in love with rebase command and the lack of such a command or at least an easy way to amend the previous commits leads me to abandon it. However I still have one or two fossil repo, thus I’ll try to test your version and give you feedback if I see something strange. |
As a side note (sorry for the pollution, but now you wake up the beast ;) ) I see that in your last development @Rycieos you seems to work only on the |
Oops, I forgot about that PR. I just a few days ago finally got through the backlog of issues, but haven't finished with the backlog of PRs yet. Thanks for taking a look. I'll be the first to admit that a new VCS is not easy to pick up, and I'm sure there will be many things I miss while trying to update our 5 current VCSs. I plan on using
The goal of my rework is to be able to integrate as many features as possible, so yes I plan to integrate all the requested features. I won't promise they will all make it into the default theme, but overwhelmingly the contributions to this project are high quality, and I'm happy to merge them. |
Thanks for your quick reply :) As you may have noticed I’ve jumped in the train and rebased my last branches on master to let you choose if you want to integrate them or not. In the end, I’ve no strong opinion about being merged or not, as I’m already using my own fork for my own usage. But thanks to your reply, I’ve changed my fork target from develop to master, that way I’ll be able to receive update :) That said, I’ve just tested your branch and for the little I’ve seen, it works as expected. I’ve not look deep in it, thus I may have missed something, but for now it seems right. |
Unfortunately I won't be of much help either. I still have fossil installed, but I don't think I had to actively use it in at least a year. |
Shell: Bash 5.0.17(1)-release
Operating system: Linux aiolos 5.8.0-25-generic, Ubuntu 20.10 Groovy Gorilla
Liquidprompt version: v1.12.0
Steps to Reproduce
Expected Behavior
No version control information should be included in the prompt.
Current Behavior
Fossil 2.11 has the following item in the changelog:
This breaks the current way to detect a fossil checkout without a branch.
The text was updated successfully, but these errors were encountered: