I have a computer that is offline from the network, but shares some svn directories with computers that are on the network.
About once a month I need to update the directories on the offline computer with the changes that have happened in the repos. The current way I do this is to zip the directories, burn on cd and unzip on the offline computer.
I thought there must be an easier way to do this, so I thought of getting all the files that were changed from the last time and only zip those. But then I would miss out on changing deleted files.
So I there a way to create a patch from a revision to head? I've searched but haven't found anything useful.
Both computers run win7.
If you know the revision of the last change, you could run a
svn diff -r revision:HEAD
to get the list of changes on all files.
You could add --summarize to get a list of files alone (without the actual diffs)
svn diff --summarize -r revision:HEAD
which could then be piped into a zip command to just get the files that were changed.
Refer SVNBook
If the repository isn't too large and can fit entirely on an USB stick / CD, you can do this:
file:///
schema ( documentation ). svn update
. If you've copied the latest version of the repo in the same directory on the USB stick, the update should run just fine.
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.