From 462d03d9268f6793a9966147c31628e277c84a75 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 20 Apr 2008 04:04:59 +0000 Subject: * Various SvnBackupModule fixes. --- .../Modules/SvnSerialiser/SvnBackupModule.cs | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Modules/SvnSerialiser') diff --git a/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs b/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs index d8e4610..b932802 100644 --- a/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs +++ b/OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs @@ -63,6 +63,27 @@ namespace OpenSim.Region.Modules.SvnSerialiser m_svnClient.Checkout2(m_svnurl, m_svndir, Svn.Revision.Head, Svn.Revision.Head, true, false); } + private void CheckoutSvn(SvnRevision revision) + { + m_svnClient.Checkout2(m_svnurl, m_svndir, revision, revision, true, false); + } + + private void CheckoutSvnPartial(string subdir) + { + if (!System.IO.Directory.Exists(m_svndir + Slash.DirectorySeparatorChar + subdir)) + System.IO.Directory.CreateDirectory(m_svndir + Slash.DirectorySeparatorChar + subdir); + + m_svnClient.Checkout2(m_svnurl + "/" + subdir, m_svndir, Svn.Revision.Head, Svn.Revision.Head, true, false); + } + + private void CheckoutSvnPartial(string subdir, SvnRevision revision) + { + if (!System.IO.Directory.Exists(m_svndir + Slash.DirectorySeparatorChar + subdir)) + System.IO.Directory.CreateDirectory(m_svndir + Slash.DirectorySeparatorChar + subdir); + + m_svnClient.Checkout2(m_svnurl + "/" + subdir, m_svndir, revision, revision, true, false); + } + #endregion #region SvnDotNet Callbacks @@ -180,6 +201,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser m_svnClient.AddUsernameProvider(); m_svnClient.AddPromptProvider(new SvnAuthProviderObject.SimplePrompt(SimpleAuth), IntPtr.Zero, 2); m_svnClient.OpenAuth(); + m_svnClient.Context.LogMsgFunc = new SvnDelegate(new SvnClient.GetCommitLog(GetCommitLogCallback)); } private void CreateSvnDirectory() @@ -190,7 +212,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser public void Close() { - + } public string Name -- cgit v1.1