Seems more consistent.
Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG05433ad59c52: forget: use relative paths for --interactive
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
| hg-reviewers |
Seems more consistent.
| Lint Skipped |
| Unit Tests Skipped |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/cmdutil.py (7 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| Martin von Zweigbergk | Feb 7 2019, 5:22 PM |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz | ||
| Closed | martinvonz |
| if interactive: | if interactive: | ||||
| responses = _('[Ynsa?]' | responses = _('[Ynsa?]' | ||||
| '$$ &Yes, forget this file' | '$$ &Yes, forget this file' | ||||
| '$$ &No, skip this file' | '$$ &No, skip this file' | ||||
| '$$ &Skip remaining files' | '$$ &Skip remaining files' | ||||
| '$$ Include &all remaining files' | '$$ Include &all remaining files' | ||||
| '$$ &? (display help)') | '$$ &? (display help)') | ||||
| for filename in forget[:]: | for filename in forget[:]: | ||||
| r = ui.promptchoice(_('forget %s %s') % (filename, responses)) | r = ui.promptchoice(_('forget %s %s') % | ||||
| (uipathfn(filename), responses)) | |||||
| if r == 4: # ? | if r == 4: # ? | ||||
| while r == 4: | while r == 4: | ||||
| for c, t in ui.extractchoices(responses)[1]: | for c, t in ui.extractchoices(responses)[1]: | ||||
| ui.write('%s - %s\n' % (c, encoding.lower(t))) | ui.write('%s - %s\n' % (c, encoding.lower(t))) | ||||
| r = ui.promptchoice(_('forget %s %s') % (filename, | r = ui.promptchoice(_('forget %s %s') % | ||||
| responses)) | (uipathfn(filename), responses)) | ||||
| if r == 0: # yes | if r == 0: # yes | ||||
| continue | continue | ||||
| elif r == 1: # no | elif r == 1: # no | ||||
| forget.remove(filename) | forget.remove(filename) | ||||
| elif r == 2: # Skip | elif r == 2: # Skip | ||||
| fnindex = forget.index(filename) | fnindex = forget.index(filename) | ||||
| del forget[fnindex:] | del forget[fnindex:] | ||||
| break | break | ||||