drop history from repository from a given revision

Patrick Mézard pmezard at gmail.com
Mon May 16 14:44:13 UTC 2011


Le 16/05/11 05:39, Kong, Howard a écrit :
> 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.

Try:

  $ hg -R ~/Marketplace3.bitbucket2 tip

The converted repository is probably there but no revision is checked out. See hg help update.

--
Patrick Mézard



More information about the Mercurial mailing list