History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-179
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Don Ross
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Be able to do a 'force checkout' in a repository

Created: 15/Dec/06 10:30 AM   Updated: 02/Mar/10 01:48 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
My specific use case is this: I have a File System repository which I use to download a set of data files from a server, which I then use in my build. During the build, these data files get modified, used to generate a zip file, and then can be discarded.

When I trigger the next build, however, the checked out files are not overwritten by the Checkout step, because they are the same or newer than those in the repository. I had to write a special Builder step to remove the files before calling the Checkout step.

Please add a flag to the File System repository which forces a clean sync of all files in the repository which are different from (not just newer than) those already checked out. I can also see where this capabilty may be useful for other types of repositories, where checked out data may be modified or deleted. If set, the Checkout action should do whatever is necessary to make the checked out files match those in the repository.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [15/Dec/06 05:18 PM]
How about do a clean build? When a clean build is executed, all files will be deleted first.

Don Ross [16/Dec/06 11:35 AM]
My perforce repository has 12gb of data, much of which doesn't change very often. It takes an hour and a half to do a full sync... so a clean build twice a day isn't really an option.

A happy medium would be the ability to force sync select repositories. Then I could force the File System repository to sync clean every build while only cleaning the perforce sync once a week. I am imagining an option to the Checkout step.

Robin Shen [16/Dec/06 06:52 PM]
Thanks, will take care of this.

Robin Shen [02/Mar/10 01:48 AM]
The cleanup strategy is left to the user since 2.0, and this functionality can be achieved by supplying pre-execute script cleaning necessary files/directories for the build step.