diff options
author | Adam Frisby | 2008-04-20 04:04:59 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-20 04:04:59 +0000 |
commit | 462d03d9268f6793a9966147c31628e277c84a75 (patch) | |
tree | da18283609ba56d38098a3df3ccb137b032b59a6 /OpenSim | |
parent | * Start catching rogue SocketExceptions which occur (at least on mono) when a... (diff) | |
download | opensim-SC-462d03d9268f6793a9966147c31628e277c84a75.zip opensim-SC-462d03d9268f6793a9966147c31628e277c84a75.tar.gz opensim-SC-462d03d9268f6793a9966147c31628e277c84a75.tar.bz2 opensim-SC-462d03d9268f6793a9966147c31628e277c84a75.tar.xz |
* Various SvnBackupModule fixes.
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 |