* Added experimental "svn load <revision>" command to allow you to load a region from a specified SVN revision. Potentially useful for rollbacks.

0.6.0-stable
Adam Frisby 2008-04-20 04:15:12 +00:00
parent 1ca94ab5dd
commit 7d18a93c2e
1 changed files with 38 additions and 7 deletions

View File

@ -149,12 +149,25 @@ namespace OpenSim.Region.Modules.SvnSerialiser
{
if (args[0] == "svn" && args[1] == "save")
{
foreach (Scene scene in m_scenes)
SaveAllScenes();
}
if (args.Length == 2)
{
SaveRegion(scene);
}
}
if (args[0] == "svn" && args[1] == "load")
{
LoadAllScenes();
}
}
if (args.Length == 3)
{
if (args[0] == "svn" && args[1] == "load")
{
LoadAllScenes(Int32.Parse(args[2]));
}
}
}
private void LoadAllScenes()
{
CheckoutSvn();
@ -163,6 +176,24 @@ namespace OpenSim.Region.Modules.SvnSerialiser
LoadRegion(scene);
}
}
private void LoadAllScenes(int revision)
{
CheckoutSvn(new SvnRevision(revision));
foreach (Scene scene in m_scenes)
{
LoadRegion(scene);
}
}
private void SaveAllScenes()
{
foreach (Scene scene in m_scenes)
{
SaveRegion(scene);
}
}
public void PostInitialise()