Add exclude files support to the Perforce SCMClient.
Review Request #6376 — Created Sept. 26, 2014 and submitted
The Perforce SCMClient now supports the -X flag for diff and post
operations. The -X parameter specifies a pattern to match against.
To specify a pattern against a depot, use-X //depot/...
and to
specify a relative (to the current working directory) pattern, use
-X pattern
. A pattern that beings with a single slash is
interpreted as an absolute path.
Generated diffs via
rbt diff -X
that excluded files. This was tested
using numbered changesets (both submitted and pending) and the default
changeset (i.e., open files)
Change Summary:
Update documentation for rbtools
Commit: |
|
||||
---|---|---|---|---|---|
Groups: |
|
||||
Diff: |
Revision 2 (+20 -7) |
-
Tool: Pyflakes Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst Tool: PEP8 Style Checker Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
-
Would it be possible to have it so that if an exclude pattern starts with "//", treat it as a depot path, and if it doesn't, treat it as a local (relative) path?
Change Summary:
Allow depot patterns and relative patterns.
Description: |
|
||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
||||||||||||||||||||||||
Diff: |
Revision 3 (+68 -8) |
-
Tool: Pyflakes Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst Tool: PEP8 Style Checker Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
-
rbtools/clients/perforce.py (Diff revision 3) Col: 18 E127 continuation line over-indented for visual indent
-
Change Summary:
PEP8
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 4 (+66 -8) |
-
Tool: PEP8 Style Checker Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst Tool: Pyflakes Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 5 (+64 -8) |
-
Tool: Pyflakes Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst Tool: PEP8 Style Checker Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
-
Tool: Pyflakes Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst Tool: PEP8 Style Checker Processed Files: rbtools/clients/perforce.py Ignored Files: docs/rbtools/rbt/commands/post.rst docs/rbtools/rbt/commands/diff.rst
Change Summary:
Use os.path.abspath instead of building paths myself.
Commit: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 7 (+61 -8) |