spaces break post-review (at least for svn)
Updated 5 months, 1 week ago
| Travis Cline | Reviewers | ||
| reviewboard | |||
| 510 | |||
| None | Review Board SVN | ||
spaces break post-review (at least for svn)
Diff revision 1 (Latest)
- trunk/reviewboard/contrib/tools/post-review: 2 changes [ 1 2 ]
| trunk/reviewboard/contrib/tools/post-review | |||
|---|---|---|---|
| Revision 1413 | New Change | ||
| ... | 708 lines hidden [Expand] | ||
| 709 | return result |
709 | return result |
| 710 | 710 | ||
| 711 | def svn_info(self, path): |
711 | def svn_info(self, path): |
| 712 | """Return a dict which is the result of 'svn info' at a given path.""" |
712 | """Return a dict which is the result of 'svn info' at a given path.""" |
| 713 | svninfo = {} |
713 | svninfo = {} |
| 714 | for info in execute("env LANG=en_US.UTF-8 svn info " + path).splitlines(): |
714 | for info in execute("env LANG=en_US.UTF-8 svn info '%s'" % path).splitlines(): |
| 715 | parts = info.split(": ", 1) |
715 | parts = info.split(": ", 1) |
| 716 | if len(parts) == 2: |
716 | if len(parts) == 2: |
| 717 | key, value = parts |
717 | key, value = parts |
| 718 | svninfo[key] = value |
718 | svninfo[key] = value |
| 719 | 719 | ||
| ... | 806 lines hidden [Expand] | ||
| 1526 | 1526 | ||
| 1527 | if options.revision_range: |
1527 | if options.revision_range: |
| 1528 | diff = tool.diff_between_revisions(options.revision_range) |
1528 | diff = tool.diff_between_revisions(options.revision_range) |
| 1529 | parent_diff = None |
1529 | parent_diff = None |
| 1530 | else: |
1530 | else: |
| 1531 | args = ["'%s'" % arg for arg in args] # quote filenames |
||
| 1531 | diff, parent_diff = tool.diff(args) |
1532 | diff, parent_diff = tool.diff(args) |
| 1532 | 1533 | ||
| 1533 | if options.output_diff_only: |
1534 | if options.output_diff_only: |
| 1534 | print diff |
1535 | print diff |
| 1535 | sys.exit(0) |
1536 | sys.exit(0) |
| ... | 25 lines hidden [Expand] | ||
- trunk/reviewboard/contrib/tools/post-review: 2 changes [ 1 2 ]
Other reviews