Convert bzr

Patrick Mézard patrick at mezard.eu
Sun Dec 16 21:11:34 UTC 2012


Le 16/12/12 21:52, Adrian Klaver a écrit :
> On 12/16/2012 12:45 PM, Patrick Mézard wrote:
> 
>>
>>>
>>>
>>> This might be a good time to ask what is supposed to happen?
>>> I am working under the assumption that using convert creates a new directory with a .hg subdirectory and the working files from the original repo(this case bzr) copied over. Is this what is intended or am I making a false assumption?
>>
>> It creates a new repository but does not checkout anything. Here you may have an issue with a simple "hg update" because convert created a misplaced tag changeset (meaning you have two heads on default branch). Running:
>>
>>    $ hg branches
> 
> Yes, this seems to be the problem.
> 
> aklaver at panda:~/aws-hg> hg branches
> default                       33:1e9350baa645
> aws                           32:862c477a9ad0
> 
> 
> I started with this repo because it was small and simple:) After my last email I decided to run convert against some larger repos and it worked. I was in the process of trying to figure out wht when your email landed. Thanks.
> 
>>
>> should display converted branches. If the one you want is "default", run:
>>
>>    $ hg heads default
>>
>> this may display more than one changeset, including the tags one. Pick the one you want (not the tags one) and use it with "hg update".
>>
>> Otherwise, "hg update -C BRANCH" should give you the branch you want.
>>
>> Running a graph viewer on the repository may also help clarifying things.
> 
> New to hg, so how do I do that?

   $ cd repo
   $ hg serve

It should display an URL like http://localhost:8000. Open it in a browser and click on the graph link on the left. You may find more powerful tools in TortoiseHG, hgviewer or similar packages.

(On command line you can try:

  $ hg log -G

but by default it won't help much with the topology. With recent mercurial you could try:

  $ hg log -G -r 'branchpoint() or heads(all()) or roots(all())'

which gives you a textual summary of the graph branches.)

--
Patrick Mézard




More information about the Mercurial mailing list