java - How to get previous revision CL in perforce -


i writing program, have cl ,from need access previoius revision cl of each file.

how can ?

code have written till is:

ichangelist cl = server.getchangelist(clid);    list<ifilespec> files = cl.getfiles(true);   for(int = 0; < files.size() ; i++) {       ifilespec filespec=files.get(i); } 

revision specifiers can here (see 'p4 revisions').

in particular, previous revision of each of files file of previous changelist.

so, since clid changelist care about, compute change clprev = (clid - 1), , 'file@clprev'.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -