Changing the root of a Mercurial repository

Stephen Gerstacker sgerstacker at edpaymentsystems.com
Wed Jul 11 08:16:41 CDT 2007


I migrated an old project from SVN to hg recently.  It went great and I’ve
been using hg for a while.  This is a Ruby on Rails application.

 

Originally, the Ruby on Rails projects root was in a couple of
subdirectories in the repository. (/src/Project).  Rails uses Capistrano to
deploy to remote servers.  With SVN, I could specify a part of the
repository to check out, but with hg, this doesn’t seem to be so.

 

What I’d like to do is remove the other stuff from the repository and then
move the /src/Project folder to the root of the repository.  Is there a good
way to do this?

 

Just for the record, the source tree looks like:

 

/docs

/libs

/src/Project

 

I’d like to remove docs and libs and then make /src/Project the root.  I’m
still a bit new to hg, so I don’t want to completely destroy everything :P.

 

- Stephen


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.10.2/894 - Release Date: 7/10/2007
17:44
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20070711/5e437dd3/attachment.htm 


More information about the Mercurial mailing list