Details
Details
- Reviewers
pulkit - Group Reviewers
hg-reviewers - Commits
- rHGe4f82db071a4: py3: fix test-diff-color.t
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Branch
- default
- Lint
No Linters Available - Unit
No Unit Test Coverage
| pulkit |
| hg-reviewers |
| No Linters Available |
| No Unit Test Coverage |
| Path | Packages | |||
|---|---|---|---|---|
| M | contrib/python3-whitelist (1 line) | |||
| M | mercurial/patch.py (2 lines) |
| Commit | Local | Parents | Author | Summary | Date |
|---|---|---|---|---|---|
| f28dacc45a13 | 40321 | c992be251828 | Mark Thomas | py3: fix test-diff-color.t | Oct 14 2018, 5:24 AM |
| test-debugcommands.t | test-debugcommands.t | ||||
| test-debugextensions.t | test-debugextensions.t | ||||
| test-debugindexdot.t | test-debugindexdot.t | ||||
| test-debugrename.t | test-debugrename.t | ||||
| test-default-push.t | test-default-push.t | ||||
| test-diff-antipatience.t | test-diff-antipatience.t | ||||
| test-diff-binary-file.t | test-diff-binary-file.t | ||||
| test-diff-change.t | test-diff-change.t | ||||
| test-diff-color.t | |||||
| test-diff-copy-depth.t | test-diff-copy-depth.t | ||||
| test-diff-hashes.t | test-diff-hashes.t | ||||
| test-diff-ignore-whitespace.t | test-diff-ignore-whitespace.t | ||||
| test-diff-indent-heuristic.t | test-diff-indent-heuristic.t | ||||
| test-diff-issue2761.t | test-diff-issue2761.t | ||||
| test-diff-newlines.t | test-diff-newlines.t | ||||
| test-diff-reverse.t | test-diff-reverse.t | ||||
| test-diff-subdir.t | test-diff-subdir.t | ||||
| chomp = token[:-1] # chomp | chomp = token[:-1] # chomp | ||||
| if chomp.endswith('\r'): | if chomp.endswith('\r'): | ||||
| chomp = chomp[:-1] | chomp = chomp[:-1] | ||||
| endofline = token[len(chomp):] | endofline = token[len(chomp):] | ||||
| token = chomp.rstrip() # detect spaces at the end | token = chomp.rstrip() # detect spaces at the end | ||||
| endspaces = chomp[len(token):] | endspaces = chomp[len(token):] | ||||
| # scan tabs | # scan tabs | ||||
| for maybetab in tabsplitter.findall(token): | for maybetab in tabsplitter.findall(token): | ||||
| if '\t' == maybetab[0]: | if b'\t' == maybetab[0:1]: | ||||
| currentlabel = 'diff.tab' | currentlabel = 'diff.tab' | ||||
| else: | else: | ||||
| if changed: | if changed: | ||||
| currentlabel = label + '.changed' | currentlabel = label + '.changed' | ||||
| else: | else: | ||||
| currentlabel = label + '.unchanged' | currentlabel = label + '.unchanged' | ||||
| yield (maybetab, currentlabel) | yield (maybetab, currentlabel) | ||||
| if isendofline: | if isendofline: | ||||