c# - Perforce API (.NET): File sync is not working? -
using 2014.1.85.4506 api version. trying retrieve files within depot on in workspace.
i have object local variables string localpath, string depotpath, string clientpath (which same localpath), repository repo , connection con.
my code looks like:
// ... depotpath depotspec = new depotpath(depopath); clientpath clientspec = new clientpath(clientpath); localpath localspec = new localpath(localpath); filespec filespec = new filespec(depospec, clientspec, localspec, versionspec.head); ilist<filespec> filespecs = new list<filespec>(); filespecs.add(filespec); ilist<filespec> synced = con.client.syncfiles(filespecs, null); // ... and synced ends beingness null. thoughts?
just create sure, syncfiles returns null or empty list?
if returns empty list, had happen when had latest revision locally. because there nil synced, returns empty list.
c# .net sync perforce p4api.net
No comments:
Post a Comment