这是我想将文件签出到默认更改列表的代码。
但我不知道我的默认 changlist ID。我怎么才能得到它?
string command = "-c";
string f = filePath;
cmd = new P4Command(p4, "add", true, command, changelist.Id.ToString(), "-f", f);
rslt = cmd.Run();
f = filePath.Replace("@", "%40");
cmd = new P4Command(p4, "edit", true, command, changelist.Id.ToString(), f);
rslt = cmd.Run();
cmd = new P4Command(p4, "reopen", true, command, changelist.Id.ToString(), f);
rslt = cmd.Run();