Details
Details
- Reviewers
yuja - Group Reviewers
hg-reviewers - Commits
- rHG149fd142f498: debugcommands: fix repr in debugignore print with pycompat.bytestr
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
yuja |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/debugcommands.py (2 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Abandoned | 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 |
With no argument display the combined ignore pattern. | With no argument display the combined ignore pattern. | ||||
Given space separated file names, shows if the given file is ignored and | Given space separated file names, shows if the given file is ignored and | ||||
if so, show the ignore rule (file and line number) that matched it. | if so, show the ignore rule (file and line number) that matched it. | ||||
""" | """ | ||||
ignore = repo.dirstate._ignore | ignore = repo.dirstate._ignore | ||||
if not files: | if not files: | ||||
# Show all the patterns | # Show all the patterns | ||||
ui.write("%s\n" % repr(ignore)) | ui.write("%s\n" % pycompat.byterepr(ignore)) | ||||
else: | else: | ||||
m = scmutil.match(repo[None], pats=files) | m = scmutil.match(repo[None], pats=files) | ||||
for f in m.files(): | for f in m.files(): | ||||
nf = util.normpath(f) | nf = util.normpath(f) | ||||
ignored = None | ignored = None | ||||
ignoredata = None | ignoredata = None | ||||
if nf != '.': | if nf != '.': | ||||
if ignore(nf): | if ignore(nf): |