On 12/11/13 7:16 PM, Les Mikesell wrote: > I guess I don't understand why it couldn't be as simple as having the > library get a pristine copy on demand if some operation needs it.
The original wc code had almost no abstraction around the pristines (as far as I can recall, it's been a long time since I looked at it). WC-NG has more abstraction around them than I recall (I just went and looked). There is a function that retrieves a stream for a pristine, but it doesn't seem to be used everywhere. There are an awful lot of places where it seems we're just passing around the filename (many of which appear to me to be passing through several different layers of the libraries). Someone needs to untangle this mess and get every use of the pristine using a definitive abstraction that can then be made to handle missing pristines. That's not a trivial task. > Isn't there already a recovery procedure for a missing pristine file? No there is not. You delete a pristine the working copy is busted.