How to add a file to a Changelist

Asked

Viewed 31 times

1

I want to add files to the "ignore-on-commit" changelist. I have this code, which runs, not the error. (But it also doesn’t work :v)

using(SvnClient client = new SvnClient())
{
   string sSoluctionDir = args[1].Remove(0, 1);
   var pes = Directory.GetFiles(sSoluctionDir, "AssemblyInfo.cs", SearchOption.AllDirectories);
   for (int i = 0; i < pes.Length; i++)
   {
   SvnAddToChangeListArgs a = new SvnAddToChangeListArgs();
   client.AddToChangeList(pes[i], "ignore-on-commit", a);
   }

}
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.