drop history from repository from a given revision

Kong, Howard hkong at mitre.org
Mon May 16 16:14:52 UTC 2011


Thank you Jason, I'm a big fan of your work, and have not needed to dig into Hg at all using just MacHg.  It feels very intuitive—definitely deserving of the Mac prefix!

I will try your suggestion and Patricks's when I get back to the office midweek.

hk.

From: Jason Harris <jason at jasonfharris.com<mailto:jason at jasonfharris.com>>
Date: Mon, 16 May 2011 11:02:52 -0400
To: The MITRE Corporation <hkong at mitre.org<mailto:hkong at mitre.org>>
Cc: "mercurial at selenic.com<mailto:mercurial at selenic.com>" <mercurial at selenic.com<mailto:mercurial at selenic.com>>
Subject: Re: drop history from repository from a given revision


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/2dc1e854/attachment.html>


More information about the Mercurial mailing list