[PATCH] Some yasvn2hg patch

Joel Rosdahl joel at rosdahl.net
Mon May 14 01:51:05 CDT 2007


Antoine Pitrou <antoine.pitrou at wengo.com> writes:

> Le mercredi 09 mai 2007 à 14:52 +0200, Sebastien Lucas a écrit :
>
>> yasvn2hg create a new branch inside the hg repo for each directory
>> in /branches and create a hg tag for each directory in /tags.
>
> IMHO it should still create separate repositories for each branch,
> just make sure they clone the branch they were copied from. AFAIK
> "one-hg-repo-per-development-branch" is still the recommended model,
> and it isn't exclusive with named branches anyway. By combining
> named branches and separate repos you have a very powerful and
> flexible model.

I don't think it's necessary for a (one-shot) converter to create
separate repositories for each branch since it's easy to extract
wanted branches from the repository afterwards using "hg clone" with
an -r option. Example:

    % yasvn2hg ... hg-repo
    [...]
    Branches in hg repository after conversion:
      - /branches/foo (head: 42)
      - /trunk (head: 117)
    % hg clone -r 42 hg-repo hg-foo

-- 
Regards,
Joel Rosdahl <joel at rosdahl.net>
Key BB845E97; fingerprint 9F4B D780 6EF4 5700 778D  8B22 0064 F9FF BB84 5E97



More information about the Mercurial mailing list