Hi,
We are currently trying to deploy a SourceGear Fortress repository onto production web server of ours.
Our plan to to publish all website changes into this repository and have the Web Server perform a "Get Latest Version" periodically.
We have currently built an executable that will automatically perform a "Get Latest Version" of this repository that we will schedule to run every 10 minutes.
One of our websites contains 1000's of images (size 1.3Gb) and is taking a really long time to "Get Latest Version".
Even when no changes are made.
What is the most effective way to keep a working space up to date with the latest version of a repository.
I want this workspace to update everytime something new is committed to my repository so i can utilise Source Gear as a publishing mechanism for my websites.
The way we currently "Get Latest Version" was advised in this post:
http://support.sourcegear.com/viewtopic ... 32&t=11673
using this mechanism through the API:
ServerOperations.SetWorkingFolder("$", workingfolderroot, true, true);
GetOperations.ProcessCommandGet(new string[] { "$" }, new GetOptions() {
MakeWritable = MakeWritableType.MakeAllFilesWritable,
Merge = MergeType.AttemptAutomaticMerge,
PerformDeletions = PerformDeletionsType.DoNotRemoveWorkingCopy,
Recursive = true,
SetFileTime = SetFileTimeType.Current
});
Any help on this will be greatly appreciated.
We really want to get Source Gear Fotress to work for us as we really enjoy using it as a Source Control System.
Please let me know if you need any further information to assist me with this questions
Kind Regards
Large Repository Auto Get Latest Version
Moderator: SourceGear
Re: Large Repository Auto Get Latest Version
Can you enable logging in your program, and send us the debug log?
That will help us understand where things are slowing down.
Code: Select all
SimpleLogger.Log.LogFilePath = "C:\\path\\to\\log\\file";
SimpleLogger.Log.Enabled = true;
SimpleLogger.Log.IncludeStackTraces = false;
SimpleLogger.Log.EnableClass("all");
Subscribe to the Fortress/Vault blog
Re: Large Repository Auto Get Latest Version
If this is the objective, then skipping the performance question...what about using Shadow Folders? That would update a file system folder with new changes whenever something is checked in.grantm wrote:What is the most effective way to keep a working space up to date with the latest version of a repository.
I want this workspace to update everytime something new is committed to my repository so i can utilise Source Gear as a publishing mechanism for my websites.
Re: Large Repository Auto Get Latest Version
@AjarnMark
That sounds like a marvelous idea.
Please can you point me to some reference on how I can setup shadow folders.
@jeremy_sg
My tests are currently running slowly through the Vault Client as well.
I will try get some logs on monday morning I can post you
That sounds like a marvelous idea.
Please can you point me to some reference on how I can setup shadow folders.
@jeremy_sg
My tests are currently running slowly through the Vault Client as well.
I will try get some logs on monday morning I can post you
Re: Large Repository Auto Get Latest Version
Here's a link to information for Shadow Folders with Vault. I assume (as dangerous as that is) that this will also work with Fortress, but I have not tried it.grantm wrote:@AjarnMark
That sounds like a marvelous idea.
Please can you point me to some reference on how I can setup shadow folders.
http://download.sourcegear.com/misc/vau ... olders.htm