-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix #2659: Use get_hg_branch() to get Mercurial branch information. #2660
Conversation
@vsajip can you please take a screenshot and paste it into a comment so we can see the prompt before and after your modification? I not use mercurial so I have no way to test. |
I can do that, but the prompt hasn't actually changed - only the internal implementation of it has. The original code directly did an |
@vsajip I am not trying to be difficult but why change it then? What is the benefit of your 'fix' over what the current code does if the final result does not change? Just trying to understand. |
Well, |
I agree completely was just wondering if you were trying to fix an issue you saw. Thamks for the PR |
You're welcome. Thanks for your part in maintaining cmder, it makes the Windows command line so much better! I have some local changes to my cmder setup, and every time I update cmder, I need to retrofit those changes into my newly updated cmder. One of those is support for Mercurial and I came across this when doing my retrofit after installing cmder 1.3.19. There are some other cosmetic things that I do (e.g. spaces between the |
@vsajip v1.3.19 has support for a configurable prompt. I am curious to know what you mean by retrofitting after upgrade. What kind of changes are you making and how do they change the appearance of the shell? I am wondering if your retrofits could be made configurable items in newer Cmder versions. We are always interested in user contribution but we need to be careful not to undo something current users depend on. |
No changes to the appearance of the shell. The two main changes are:
Definitely. IMO both the prompt itself and the command to get branch information could be made configurable. On Linux I use a project called bash_git_prompt to provide an enhanced prompt for when you're under a Git project directory. I feel cmder could use some of that project's approach to enhance the Git information provided.
Absolutely, I understand the need for backward compatibility. I'm a committer on the Python project, which takes it very seriously, and we sometimes have to reject suggested improvements where they can't be made in a backwards-compatible way. |
If you mean |
The above and more is already possible for Cmder v1.3.19 |
Thanks, I'm using that file now. I'll look to see how I can minimise any retrofitting I need to do in this area. |
Thanks - Merged |
No description provided.