summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2016-10-11 01:49:42 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2016-10-11 01:49:42 +0000
commita5d961b1376216eff69303bbf81355789785e234 (patch)
treede32c7cdf6cdb739d0e0f4e068b418009b0fec4c
parent58bc22e83275789987deb80f68743f2916b51ac8 (diff)
git-svn: instructions for faster init
initial svn clone takes ages. A faster way is to copy history from a git mirror. Document this. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio/trunk@586 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
-rw-r--r--git-svn.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/git-svn.txt b/git-svn.txt
new file mode 100644
index 0000000..e094217
--- /dev/null
+++ b/git-svn.txt
@@ -0,0 +1,34 @@
+Using git svn with virtio svn repository:
+
+Initial clone (fetches all branches, takes a very long time):
+ git svn clone -s https://tools.oasis-open.org/version-control/svn/virtio
+Pull:
+ git svn rebase
+Push:
+ git svn dcommit
+
+Tagging 1.0 cs02 to match the released specification:
+ git branch -t v1.0-cs02
+
+Updating the trunk with all changes made on 1.0 branch:
+
+ git config --global svn.pushmergeinfo true
+ git checkout -b master origin/trunk
+ git svn fetch
+ git svn rebase -l
+ git merge --no-ff origin/v1.0
+ [ resolve merge conflicts ]
+ git svn dcommit
+
+Faster initial clone from git mirror (example using mst's mirror at kernel.org):
+
+ git clone git://git.kernel.org/pub/scm/virt/kvm/mst/virtio-text.git
+ cd virtio-text
+ git config --remove-section remote.origin
+ git svn init -s https://tools.oasis-open.org/version-control/svn/virtio
+ git svn rebase
+ git checkout -b trunk origin/trunk
+
+Updating a git mirror from git-svn repository (after setting up a
+remote named "mirror"):
+ git push mirror --prune +refs/remotes/origin/*:refs/heads/*