Change Summary:
Bump? Updating this patch to be based on the release-0.5 tag. It's available from... https://github.com/atagar/rbtools/tree/p4_print_symlinks https://github.com/atagar/rbtools/commit/a96a6923e680f9d08b50164e19e05dfd3460add6 I've also expanded the patch a bit to handle 'p4 add' of symlinks to non-existant files (which similary caused things to choke)... % ln -s /tmp/foaodfnao bad_symlink % p4 add bad_symlink % post-review Traceback (most recent call last): File "/share/rbtools/postreview.py", line 1428, in <module> main() File "/share/rbtools/postreview.py", line 1366, in main diff, parent_diff = tool.diff(args) File "/share/rbtools/clients/perforce.py", line 292, in diff return self._changenum_diff(changenum) File "/share/rbtools/clients/perforce.py", line 628, in _changenum_diff ignore_unmodified=True) File "/share/rbtools/clients/perforce.py", line 655, in _do_diff new_file = _normalize_newlines(new_file) File "/share/rbtools/clients/perforce.py", line 793, in _normalize_newlines diff_file = open(source_path) IOError: [Errno 2] No such file or directory: '/my/repo/bad_symlink' There's plenty of other use cases where bad symlinks can cause postreview.py to choke, but this covers a couple of the most common ones.
Diff: |
Revision 2 (+30 -2) |
---|