drop history from repository from a given revision

Kong, Howard hkong at mitre.org
Mon May 16 03:39:48 UTC 2011


Hi,

I am in the process of making a project open source, but need to drop the history of the project for company policy reasons.  How do I drop the history of my project from a given revision?  I am willing to even just drop all history (but it's too complicated to restart the project from scratch).

I've tried the advice given here:  http://www.selenic.com/pipermail/mercurial/2009-September/027572.html, but it doesn't seem to work for me.  If that is the recommended way to do this, then please send me an example.  Here is what I've tried, and it doesn't work:

hg --config convert.hg.startrev=160 convert Marketplace3.bitbucket   ~/Marketplace3.bitbucket2

When I run this, all I get is an empty directory in ~/Marketplace3.bitbucket2.  I've also tried adding –s and –d to the mix, but to no avail.

I'm running MacHg on a Mac OS X Snow Leopard.

Any help will be greatly appreciated.  Thanks in advance.

hk.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110515/a3ec8ff4/attachment.html>


More information about the Mercurial mailing list