On Wed, Nov 28, 2012 at 3:42 PM, Les Mikesell <lesmikes...@gmail.com> wrote:
> On Wed, Nov 28, 2012 at 2:36 PM, Andy Levy <andy.l...@gmail.com> wrote: > > > >> Is there an easy way to purge out the earliest 6,000 Revisions of the > >> 9,600 that are in my repository? > >> > >> In a perfect world I would keep my revision numbers and timestamps, but > >> that isn't 100% required. > >> > > > > Short answer: No. > > > > Longer answer: It can be done, but everyone will have to check out new > > working copies and you might get weird results due to the loss of > history. > > There is no "easy" way to do it, but if all you're doing is cutting off > the > > first X revisions it's not the most complex task. You will keep the > commit > > timestamps, but the revision numbers will be reset (unless you enter > dummy > > revisions, which will then make your repository appear to own a modified > > DeLorean, unless you then further mangle those dummy revisions to change > > their timestamps). > > > > Version control systems are designed to keep your history. "Purging" goes > > against this core concept. Why are you embarking on this endeavor? > > It's pretty much just a matter of time until someone does something > that shouldn't have been done in any repository. Even if the answer > is always going to be 'it can't be done', why question the motives of > someone trying to fix things? It's not so much about the motives as it is understanding why so that an appropriate answer can be provided. IOW, describe the *problem*, not the perceived solution. See also http://www.perlmonks.org/index.pl?node_id=542341