Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG86f0ed7ac688: histedit: add warning message on editing tagged commits (issue4017)
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
hgext/histedit.py | ||
---|---|---|
1707 | Out of curiosity, why the sleep? |
hgext/histedit.py | ||
---|---|---|
1707 | Otherwise, the user won't be able to see the warning as the editor opens for histedit. |
hgext/histedit.py | ||
---|---|---|
1707 | Oh, OK. Does it make sense to make this an interactive prompt to continue/bail instead, to ensure this isn't missed? (Don't feel obligated- I wasn't going to say anything because I couldn't think of any other commands that prompt like this. And then I remembered that absorb does.) |
mharbison72 wrote in histedit.py:1707
Out of curiosity, why the sleep?Otherwise, the user won't be able to see the warning as the editor opens for histedit.
Maybe ui.prompt()?
I don't like this sort of sleep() use. 1 sec wouldn't be enough to notice the
warning.
@mharbison72 @yuja Thank you for the suggestions. I've created a follow-up patch making the suggested changes. Please see D5494.
Out of curiosity, why the sleep?