Importing a CVS Tree

Dimitris Mouchritsas dimitris.mouchritsas at eurodyn.com
Wed Jun 25 09:07:44 CDT 2008


Benoît Allard wrote:
> Dimitris Mouchritsas wrote:
>> Benoît Allard wrote:
>>> Dimitris Mouchritsas wrote:
>>>> Hi all,
>>>> We're in the process of moving on from CVS (finally) and we're 
>>>> checking out what's there.
>>>> I'm trying to use
>>>>
>>>> hg convert myproject
>>>>
>>>> from a fresh checkout. Even though the command completes with no 
>>>> error messages and creates a
>>>> myproject-hg directory no files seem to be created there. Any idea 
>>>> why?
> >>
> >> There should have a `.hg` directory with all the repository in it.
> >> From myproject-hg directory, you then want to update your working
> >> directory using `hg update`. The files should appears.
> > Yes, the .hg directory exists but when I try update I get:
> > D:\scrap_projects\myproject-hg> hg update
> > 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
> >
>
> Ok, then the conversion created a branch with another name than the 
> expected `default` one ; basically `HEAD` I guess.
>
> `hg update tip` will update to the last converted changeset
>
> or
>
> `hg branches` to get the names of the present branches followed by `hg 
> update branchname` should do what you want.
>
> to prevent any further problem like that you might want to set the 
> main branch name to `default` using `hg branch default`
>
I think the conversion is failing silently. The checkout directory is
around 60MB, while the target directory is only a few kilobytes.
Also, running hg branches doesn't return anything.

BTW: There seems to be a bug in TortoiseHg v.0.4rc2 which crashed
explorer.exe everytime I right clicked or opened the directory
with the repository in it.



More information about the Mercurial mailing list