diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Modules/SvnSerialiser/SvnBackupModule.cs | 24 |
1 files changed, 23 insertions, 1 deletions
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 | |||
63 | m_svnClient.Checkout2(m_svnurl, m_svndir, Svn.Revision.Head, Svn.Revision.Head, true, false); | 63 | m_svnClient.Checkout2(m_svnurl, m_svndir, Svn.Revision.Head, Svn.Revision.Head, true, false); |
64 | } | 64 | } |
65 | 65 | ||
66 | private void CheckoutSvn(SvnRevision revision) | ||
67 | { | ||
68 | m_svnClient.Checkout2(m_svnurl, m_svndir, revision, revision, true, false); | ||
69 | } | ||
70 | |||
71 | private void CheckoutSvnPartial(string subdir) | ||
72 | { | ||
73 | if (!System.IO.Directory.Exists(m_svndir + Slash.DirectorySeparatorChar + subdir)) | ||
74 | System.IO.Directory.CreateDirectory(m_svndir + Slash.DirectorySeparatorChar + subdir); | ||
75 | |||
76 | m_svnClient.Checkout2(m_svnurl + "/" + subdir, m_svndir, Svn.Revision.Head, Svn.Revision.Head, true, false); | ||
77 | } | ||
78 | |||
79 | private void CheckoutSvnPartial(string subdir, SvnRevision revision) | ||
80 | { | ||
81 | if (!System.IO.Directory.Exists(m_svndir + Slash.DirectorySeparatorChar + subdir)) | ||
82 | System.IO.Directory.CreateDirectory(m_svndir + Slash.DirectorySeparatorChar + subdir); | ||
83 | |||
84 | m_svnClient.Checkout2(m_svnurl + "/" + subdir, m_svndir, revision, revision, true, false); | ||
85 | } | ||
86 | |||
66 | #endregion | 87 | #endregion |
67 | 88 | ||
68 | #region SvnDotNet Callbacks | 89 | #region SvnDotNet Callbacks |
@@ -180,6 +201,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser | |||
180 | m_svnClient.AddUsernameProvider(); | 201 | m_svnClient.AddUsernameProvider(); |
181 | m_svnClient.AddPromptProvider(new SvnAuthProviderObject.SimplePrompt(SimpleAuth), IntPtr.Zero, 2); | 202 | m_svnClient.AddPromptProvider(new SvnAuthProviderObject.SimplePrompt(SimpleAuth), IntPtr.Zero, 2); |
182 | m_svnClient.OpenAuth(); | 203 | m_svnClient.OpenAuth(); |
204 | m_svnClient.Context.LogMsgFunc = new SvnDelegate(new SvnClient.GetCommitLog(GetCommitLogCallback)); | ||
183 | } | 205 | } |
184 | 206 | ||
185 | private void CreateSvnDirectory() | 207 | private void CreateSvnDirectory() |
@@ -190,7 +212,7 @@ namespace OpenSim.Region.Modules.SvnSerialiser | |||
190 | 212 | ||
191 | public void Close() | 213 | public void Close() |
192 | { | 214 | { |
193 | 215 | ||
194 | } | 216 | } |
195 | 217 | ||
196 | public string Name | 218 | public string Name |