Details
- Reviewers
spectral pulkit - Group Reviewers
hg-reviewers - Commits
- rHG45d12c49c3f3: zsh_completion: complete shelve and unshelve
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
Event Timeline
(Not marking accepted, though I'm fine with it going in as is, so that we get a chance to answer the questions before it lands)
contrib/zsh_completion | ||
---|---|---|
1272 | Mine has a --cleanup flag. Not sure where that came from, and I think it's dangerous as heck and I don't like it, but ... should we list it? (I'm 100% fine with the answer being "no, it's too scary" :)) | |
1277 | Optional: should we make --delete exclusive with anything else? what about --list, patch, stat..? |
contrib/zsh_completion | ||
---|---|---|
1272 | I don't think it's too scary, but I do think it's too stealthy. | |
1277 | I gave up on that idea. The logic in hgext.shelve.shelvecmd() is more or less clear, but translated into zsh completions it takes too much space: it would mean that many flags would mention almost every other flag, and --cleanup would mention literally all of them. But not global flags, mind, so you can't shortcut with (-). I'd like to see some clever way to translate allowables and the related code into zsh instead, but I myself can't write that kind of zsh yet. |
Ah, and now the comments are grayed out. I shouldn't have re-phabsend-ed this, since there are no changes from the previous version.
Mine has a --cleanup flag. Not sure where that came from, and I think it's dangerous as heck and I don't like it, but ... should we list it? (I'm 100% fine with the answer being "no, it's too scary" :))