-
-
-
rbtools/clients/git.py (Diff revision 1) Col: 39 E127 continuation line over-indented for visual indent
-
rbtools/clients/git.py (Diff revision 1) Col: 39 E127 continuation line over-indented for visual indent
-
rbtools/clients/git.py (Diff revision 1) Col: 39 E127 continuation line over-indented for visual indent
-
rbtools/clients/git.py (Diff revision 1) Col: 39 E127 continuation line over-indented for visual indent
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: |
|
||||
---|---|---|---|---|---|
Groups: |
|
||||
Diff: |
Revision 2 (+78 -16) |
-
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
-
-
-
rbtools/clients/git.py (Diff revision 2) I assume this is an error condition? If so, we should probably log something.
-
-
rbtools/clients/git.py (Diff revision 2) Any chance of supporting both include and exclude at the same time? (Did the Mercurial change support this?)
Change Summary:
Support -I and -X at the same time in git.
Rename exclude_files -> exclude_patterns.
Description: |
|
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
||||||||||||||||||||||||
Diff: |
Revision 3 (+127 -50) |
-
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
-
rbtools/clients/git.py (Diff revision 3) local variable 'include_Files' is assigned to but never used
-
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: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 4 (+127 -50) |
-
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
-
-
rbtools/clients/tests.py (Diff revision 4) Can you tell me which assert statements actually test your changes? I'm having trouble understainding the test case
-
-
docs/rbtools/rbt/commands/post.rst (Diff revision 4) This should be updated to say "pattern" instead of "file".
-
rbtools/clients/git.py (Diff revision 4) This should probably have a final 'else' that just asserts.
-
-
rbtools/clients/git.py (Diff revision 4) Please replace the `' with "" and put this whole string in single-quotes instead of double.
-
rbtools/commands/diff.py (Diff revision 4) This line should be indented one more space (to match up with the '(').
-
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: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 5 (+136 -60) |
-
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
-
-
rbtools/clients/git.py (Diff revision 4) You can use fnmatch.filter function to get a subset of the filenames that match each pattern. It will simplify the code a bit but not necessary.
Change Summary:
Use
fnmatch.filter
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 6 (+133 -59) |
-
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