public P4Resource(PerforceChangeList list, string localName, string perforceName, string perforceAction) { mList = list; mLocalName = localName; mPerforceName = perforceName; mPerforceAction = (ePerforceAction)Enum.Parse(typeof(ePerforceAction), perforceAction, true); mStatus = CoreGlobals.getPerforce().getConnection().P4GetFileStatus(mPerforceName); }
public PerforceChangeList GetExistingChangeList(int id) { PerforceChangeList newChangeList = null; if (id != -1) { newChangeList = new PerforceChangeList(id); newChangeList.UpdateChangeListInfo(); } return(newChangeList); }
public PerforceChangeList GetNewChangeList(string description) { PerforceChangeList newChangeList = null; int id = mConnection.CreateChangeList(description); if (id != -1) { newChangeList = new PerforceChangeList(id); } return(newChangeList); }