1 Jul 2011 18:05
Re: [p4] Update depot directory without individual file history
KibbeZero <perforce-user-forum <at> forums.perforce.com>
2011-07-01 16:05:01 GMT
2011-07-01 16:05:01 GMT
Posted on behalf of forum user 'KibbeZero'. [http://forums.perforce.com/index.php?app=forums&module=forums§ion=findpost&pid=2896] JoeDG, on 2011/06/29 17:07:25 UTC, said: > We have a tool that automatically generates a large hierarchy of files. We need to store and version this folder in Perforce, but don't want to have to worry about the file history/versioning of the individual files. The generated files will change (Some will disappear, change names, change folders, etc) and these details are not important to keep in the file history, but we do need to be able to revert to a previously submitted version of this folder. > > Is this possible? > > I can think of two possible options, neither of which are clean or elegant: > > 1) Perform p4 delete on all the files in the top-level folder, and then p4 add the entire folder again. I'm not sure how well this would work (if at all), and it would be cumbersome (although it may be able to be scripted). > > 2) Put the entire folder in a zip file, and store the zip in Perforce. We don't like this option for the obvious overhead and trouble of zipping and unzipping whenever changes are made. > > Any other ideas? > Instead of submitting the actual folder hierarchy, could you just generate a file that represents the folder hierarchy (XML is great for this) that you automated process can write to and generate from? -- Please click here to see the post in its original format:(Continue reading)
RSS Feed