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
Post a Comment