I'm using the svn integration as detailed in the instructions. When running 'svn diff' on multiple files, this results in svn diffing the files one-by-one, i.e. it waits for the tab of the current diff to close before it starts the next diff. I suppose bcomp only exits when the tab it opened is closed.
I prefer to open all the diffs in multiple tabs instead - this is useful for code review purposes, and prevents a delay when opening the next diff (especially if the svn server is slow to respond, as in my workplace).
I modified bcdiff.sh to run bcompare instead of bcomp but ran into a problem: Multiple tabs were opened, but all of them blank. It looks like when diffing between previous versions, svn uses temporary files and they are deleted when bcdiff.sh exits. So by the time the the new tab displays the diff, bcompare already exits and the temporary files are gone. Adding 'sleep 0.5' after bcompare works around this issue and all the diffs are displayed correctly.
Would it be possible to modify bcompare, or add an option, so it only exits once Beyond Compare reads the contents of the files?
Here's my bcdiff.sh for reference in case anyone else is interested in this workflow:
I prefer to open all the diffs in multiple tabs instead - this is useful for code review purposes, and prevents a delay when opening the next diff (especially if the svn server is slow to respond, as in my workplace).
I modified bcdiff.sh to run bcompare instead of bcomp but ran into a problem: Multiple tabs were opened, but all of them blank. It looks like when diffing between previous versions, svn uses temporary files and they are deleted when bcdiff.sh exits. So by the time the the new tab displays the diff, bcompare already exits and the temporary files are gone. Adding 'sleep 0.5' after bcompare works around this issue and all the diffs are displayed correctly.
Would it be possible to modify bcompare, or add an option, so it only exits once Beyond Compare reads the contents of the files?
Here's my bcdiff.sh for reference in case anyone else is interested in this workflow:
Code:
#! /bin/bash /usr/local/bin/bcompare "$6" "$7" -title1="$3" -title2="$5" -ro1 sleep 0.5 exit 0
Comment