jwalker
My system is windows based (windows 2016) Unfortunately, the script post-commit.bat cannot see destination path. svnadmin hotcopy command is svnadmin hotcopy e:\data\repos\thisrepo\svn t:\data\repos\thisrepo\svn --incremental
t:
is in the destination machine. The script while executed as hook fpom SVN does not see the destination path. However when executed from console, it proceeds successfully. As I understood this is a common problem, I did google search, but did not found solution. This why I am asking here, if someone had encountered such problem and found soulution to share that solution. Ivan
DougR
One of the strengths and weaknesses of Windows it "hard locking" of files. If you use "svnadmin hotcopy" during normal operations then repository files will end up getting locked and will prevent concurrent modification operations. For instance, 2 commits, 1 right after the other will likely end up with the 2nd commit aborting due to the ongoing "svnadmin hotcopy". You might be able to prevent this by having a pre-commit hook that makes sure that hotcopy is not running, but that's still a race condition unless done in a very complicated manner. In general, this is unlikely to be a good idea, at least for a normal production machine. For non-windows it should work "just fine".
DougR
Note: you can always drop the "svn hotcopy" in the "background" and let the hook complete. In that case you would need to program some serialization (e.g. lock a guard file). And, in general, an incremental, even of a large file, should go quickly assuming that the hotcopy was doing so "locally" (if to another server then, you're right, it's going to take a while). Lot of options available. Still, more trouble on Windows due to hard file locking. Cheers.