[PATCH] update webdav-proxy examples
From: Axel Gembe <ago_at_bastart.eu.org>
 
Date: Tue, 24 Jun 2008 15:38:21 +0200 
The current post-commit example is flawed in that it will skip synchronizing
 Signed-off-by: Axel Gembe <ago_at_bastart.eu.org>
 
---
 notes/webdav-proxy |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/notes/webdav-proxy b/notes/webdav-proxy
index 04fd09e..a0b1838 100644
--- a/notes/webdav-proxy
+++ b/notes/webdav-proxy
@@ -62,7 +62,8 @@ SLAVE_HOST=slave.example.com
 SLAVE_PATH=/my/local/copy/of/repos
 
 # Ensure svnadmin is in your PATH on both this machine and the remote server!
-svnadmin dump --incremental -r$2 $1 > /tmp/$2.dump
+YOUNGEST=`ssh $SLAVE_HOST "svnlook youngest $SLAVE_PATH"`
+svnadmin dump --incremental -r$[${YOUNGEST}+1]:$2 $1 > /tmp/$2.dump
 scp /tmp/$2.dump $SLAVE_HOST:$SLAVE_PATH
 ssh $SLAVE_HOST "svnadmin load $SLAVE_PATH < $SLAVE_PATH/$2.dump"
 ssh $SLAVE_HOST "rm $SLAVE_PATH/$2.dump"
-- 
1.5.6
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-06-24 15:38:38 CEST
 | 
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.