Does the source repository need to be locked during svnsync?

165 Views Asked by At

I'm using svnsync to migrate a (large) repository to a new server. I started running it last night. It got about 1/3 of the way through before a network timeout interrupted it. I resumed the sync this morning, so it'll now run during the day.

Since people still need to work, is there any problem if people continue to commit to the SOURCE repository while the synchronize operation is running?

1

There are 1 best solutions below

0
Kricket On

No, it doesn't.

I really dug around all over the interwebs, but couldn't find any reference. We decided to take the risk and try it. The commit went through and svnsync continued to run without any apparent problems.

HOWEVER: the sync will stop before it gets to the latest revision. For example: suppose, when you start synchronizing, the last revision is 100. During the synchronize operation, you commit r101. In this case, svnsync will stop at revision 100. Thus, you need to re-run svnsync to get the last remaining revision.