The host name for our Subversion server has changed and I have many working copies scattered around under certain directory tree. Can you think of some way to at least find them? I don't mind issuing the relocate command manually, but I'm having a hard time figuring out where all the working copies are and which ones are poiting to the decomissioned server. A search for the old host name within a text editor could only find a small percentage of the working copies, possibly because the value is stored in a database.
I could write a short script if necessary, if I just knew what to find.
Any idea?
Context: our services use machine names ( https://winsrv01.example.com/
instead of https://svn.example.com/
). New hardware/VM pops in, paths change. Gotta live with that.
I eventually wrote a custom script that searches for .svn
folders and then issues a svn info
command on each:
svn info "C:\Projects\Client Foo\Site Bar\stagging" --show-item repos-root-url
To write a really robust solution you need to take care of endless stuff (such as old working copies that need upgrading) but it's fine for a quick hack.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.