[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [platform-cvs-dev] Checking out files not intended for a project

Hi Michael,
eventually I found my way to the RemoteFile version of UpdateContentCachingService.buildRemoteTree(). The name is a bit confusing (doesn't really suggest that it's a file that's being fetched). Anyway, it basically does what you suggest with the comment:


           // We need to set the sync bytes back because the content fetch
           // makes the handle sticky
           remote.setSyncBytes(syncBytes, ICVSFile.CLEAN);

Which of course explains why my code didn't work. When I use this method everything works just fine.

I wish you a great new year. Thanks for all your help on this issue.

Regards,
Thomas Hallgren

Michael Valenta wrote:

Thomas,

That is a result of how we fetch the contents. To get ride of the tag, you will need to set the tag field of the resource sync info to null. The easiest way to do this is as follows (this is off the top of my head so may not be 100% correct):

ResourceSyncInfo info = cvsFile.getSyncInfo();
MutableResourceSyncInfo mutable = info.cloneMutable();
mutable.setTag(null);
cvsFile.setSyncInfo(info);

Michael