SVN command line information :C#


http://www.yolinux.com/TUTORIALS/Subversion.html

Process p = new Process();
var dir = p.StartInfo.WorkingDirectory = ConfigurationManager.AppSettings[“autowebupdateFolder”].ToString() + “\\” + cmbApplication.Text.Trim();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;

var sXMLFilename = cmbApplication.Text.Trim() + “_” + txtOldVersion.Text.Trim() + “_to_” + txtNewVersion.Text.Trim() + “.xml”;
var sEXEFilename = cmbApplication.Text.Trim() + “_” + txtOldVersion.Text.Trim() + “_to_” + txtNewVersion.Text.Trim() + “.exe”;

p.StartInfo.Arguments = “add ” + sXMLFilename +
” add ” + sEXEFilename +
” commit -m \”Release ” + cmbApplication.Text.Trim() + ” : v ” + txtNewVersion.Text.Trim() + ” \” ” + sXMLFilename +
” commit -m \”Release ” + cmbApplication.Text.Trim() + ” : v ” + txtNewVersion.Text.Trim() + ” \” ” + sEXEFilename +
” commit -m \”Release ” + cmbApplication.Text.Trim() + ” : v ” + txtNewVersion.Text.Trim() + ” \” ” + dir +
” cleanup”;
p.Start();

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s