drop history from repository from a given revision
Jason Harris
jason at jasonfharris.com
Mon May 16 15:02:52 UTC 2011
On May 16, 2011, at 5:39 AM, Kong, Howard wrote:
> 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.
There is no direct way to do this from within MacHg at this time. Hopefully Patrick's suggestion will work for you... Ie you can try opening the converted repository in MacHg and updating to the tip...
Cheers,
Jason Harris (I write MacHg)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110516/26cd60c2/attachment.html>
More information about the Mercurial
mailing list