Caught by pytype.
Details
Details
- Reviewers
dlax pulkit - Group Reviewers
hg-reviewers - Commits
- rHG72b454fae92e: debugcommands: don't shadow the error module
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
| dlax | |
| pulkit |
| hg-reviewers |
Caught by pytype.
| Lint Skipped |
| Unit Tests Skipped |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/debugcommands.py (4 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| 3dbcfc923ced | b6e7aa032748 | Augie Fackler | Nov 13 2019, 10:30 PM |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Abandoned | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Changes Planned | mharbison72 | ||
| Needs Revision | durin42 | ||
| Needs Revision | durin42 | ||
| Changes Planned | durin42 | ||
| Abandoned | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 | ||
| Closed | durin42 |
| ) | ) | ||||
| errors += 1 | errors += 1 | ||||
| for f in m1: | for f in m1: | ||||
| state = repo.dirstate[f] | state = repo.dirstate[f] | ||||
| if state not in b"nrm": | if state not in b"nrm": | ||||
| ui.warn(_(b"%s in manifest1, but listed as state %s") % (f, state)) | ui.warn(_(b"%s in manifest1, but listed as state %s") % (f, state)) | ||||
| errors += 1 | errors += 1 | ||||
| if errors: | if errors: | ||||
| error = _(b".hg/dirstate inconsistent with current parent's manifest") | errstr = _(b".hg/dirstate inconsistent with current parent's manifest") | ||||
| raise error.Abort(error) | raise error.Abort(errstr) | ||||
| @command( | @command( | ||||
| b'debugcolor', | b'debugcolor', | ||||
| [(b'', b'style', None, _(b'show all configured styles'))], | [(b'', b'style', None, _(b'show all configured styles'))], | ||||
| b'hg debugcolor', | b'hg debugcolor', | ||||
| ) | ) | ||||
| def debugcolor(ui, repo, **opts): | def debugcolor(ui, repo, **opts): | ||||