* Added support for new "svn load-region <region name> [svn revision]" command to SVN Backup Module.

0.6.0-stable
Adam Frisby 2008-04-20 04:21:18 +00:00
parent 3358d70c5b
commit b3e10debdd
1 changed files with 44 additions and 0 deletions

View File

@ -165,6 +165,50 @@ namespace OpenSim.Region.Modules.SvnSerialiser
LoadAllScenes(Int32.Parse(args[2]));
}
}
if (args.Length == 3)
{
if (args[0] == "svn" && args[1] == "load-region")
{
LoadScene(args[2]);
}
}
if (args.Length == 4)
{
if (args[0] == "svn" && args[1] == "load-region")
{
LoadScene(args[2], Int32.Parse(args[3]));
}
}
}
public void LoadScene(string name)
{
CheckoutSvn();
foreach (Scene scene in m_scenes)
{
if (scene.RegionInfo.RegionName.ToLower().Equals(name.ToLower()))
{
LoadRegion(scene);
return;
}
}
m_log.Warn("[SVNBACKUP]: No region loaded - unable to find matching name.");
}
public void LoadScene(string name, int revision)
{
CheckoutSvn(new SvnRevision(revision));
foreach (Scene scene in m_scenes)
{
if (scene.RegionInfo.RegionName.ToLower().Equals(name.ToLower()))
{
LoadRegion(scene);
return;
}
}
m_log.Warn("[SVNBACKUP]: No region loaded - unable to find matching name.");
}
private void LoadAllScenes()