Add support for -X to git SCMClient
Review Request #6339 — Created Sept. 19, 2014 and submitted
Git (and the git-svn and git-p4 backends) now support the -X/--exclude
commandline option and the EXCLUDE_PATTERNS.reviewboardrc
option.Add unit tests for excluding files from Git diffs.
Rename exclude_files/EXCLUDE_FILES to exclude_patterns/EXCLUDE_PATTERNS
to reflect the actual behaviour of -X.
Unit tests pass.
Generated diffs with excluded files via
rbt diff
with git, git-svn,
and git-p4.
Description | From | Last Updated |
---|---|---|
Col: 59 E231 missing whitespace after ',' |
reviewbot | |
Col: 39 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 39 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 39 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 39 E127 continuation line over-indented for visual indent |
reviewbot | |
Can you rename to filename? file is reserved in Python. |
chipx86 | |
I assume this is an error condition? If so, we should probably log something. |
chipx86 | |
No blank line here. |
chipx86 | |
Any chance of supporting both include and exclude at the same time? (Did the Mercurial change support this?) |
chipx86 | |
local variable 'include_Files' is assigned to but never used |
reviewbot | |
This should be updated to say "pattern" instead of "file". |
david | |
This should probably have a final 'else' that just asserts. |
david | |
Can we log this message at a higher level than 'debug'? |
david | |
Please replace the `' with "" and put this whole string in single-quotes instead of double. |
david | |
This line should be indented one more space (to match up with the '('). |
david | |
This should be indented one more space. |
david |
- Change Summary:
-
Add students group
- Commit:
-
4d9dde7b4c0085cab622ef54aa4dc342f048037b47fe9cdf2de3f7a914098c3135d7c4e4aa70d878
-
Tool: Pyflakes Processed Files: rbtools/clients/tests.py rbtools/clients/git.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst Tool: PEP8 Style Checker Processed Files: rbtools/clients/tests.py rbtools/clients/git.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
- Change Summary:
-
Support -I and -X at the same time in git.
Rename exclude_files -> exclude_patterns.
- Description:
-
Git (and the git-svn and git-p4 backends) now support the -X/--exclude
~ commandline option and the EXCLUDE_FILES .reviewboardrc
option.~ commandline option and the EXCLUDE_PATTERNS .reviewboardrc
option.Add unit tests for excluding files from Git diffs.
+ + Rename exclude_files/EXCLUDE_FILES to exclude_patterns/EXCLUDE_PATTERNS
+ to reflect the actual behaviour of -X. - Commit:
-
47fe9cdf2de3f7a914098c3135d7c4e4aa70d878dca41bcdc7a191a10b445d6d8b0e07c3fb3224ad
-
Tool: Pyflakes Processed Files: rbtools/clients/cvs.py rbtools/clients/tests.py rbtools/commands/post.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/bazaar.py rbtools/clients/svn.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
-
-
Tool: PEP8 Style Checker Processed Files: rbtools/clients/cvs.py rbtools/clients/tests.py rbtools/commands/post.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/bazaar.py rbtools/clients/svn.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
- Change Summary:
-
Fix typo
- Commit:
-
dca41bcdc7a191a10b445d6d8b0e07c3fb3224adf23dd8c5603d38ac7ed624aa1d6e27d00d1c1d46
-
Tool: Pyflakes Processed Files: rbtools/clients/cvs.py rbtools/clients/tests.py rbtools/commands/post.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/bazaar.py rbtools/clients/svn.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst Tool: PEP8 Style Checker Processed Files: rbtools/clients/cvs.py rbtools/clients/tests.py rbtools/commands/post.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/bazaar.py rbtools/clients/svn.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
- Change Summary:
-
Refactor generation of parameters in the git SCMClient's make_diff method.
The parameters are only generated once and saved so that they may be used
in bothgit diff
andgit diff-tree
(in case -X is supplied).Add an assert for an unreachable code location.
Log at error level and use appropriate quotes.
Fix documentation.
Fix indentation.
- Commit:
-
f23dd8c5603d38ac7ed624aa1d6e27d00d1c1d46199d446063ebccbf17008d70e30ea7637311950d
-
Tool: Pyflakes Processed Files: rbtools/clients/cvs.py rbtools/clients/tests.py rbtools/commands/post.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/bazaar.py rbtools/clients/svn.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
-
Tool: PEP8 Style Checker Processed Files: rbtools/clients/cvs.py rbtools/clients/tests.py rbtools/commands/post.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/bazaar.py rbtools/clients/svn.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
- Change Summary:
-
Use
fnmatch.filter
- Commit:
-
199d446063ebccbf17008d70e30ea7637311950d191bc37ed54229b0b44c98db10b4f6cc85f85e83
-
Tool: Pyflakes Processed Files: rbtools/clients/cvs.py rbtools/clients/tests.py rbtools/commands/post.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/bazaar.py rbtools/clients/svn.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst Tool: PEP8 Style Checker Processed Files: rbtools/clients/cvs.py rbtools/clients/tests.py rbtools/commands/post.py rbtools/commands/__init__.py rbtools/commands/diff.py rbtools/clients/clearcase.py rbtools/clients/plastic.py rbtools/clients/__init__.py rbtools/clients/mercurial.py rbtools/clients/git.py rbtools/clients/perforce.py rbtools/clients/bazaar.py rbtools/clients/svn.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst