hg-cvs-import and new branch style
Matt Mackall
mpm at selenic.com
Sun Dec 17 17:14:30 UTC 2006
On Sun, Dec 17, 2006 at 12:08:40PM +0000, Edouard Gomez wrote:
> Hello,
>
> For personnal needs i'm moving a lot of CVS modules to Mercurial. After
> some tries, i decided to use hg-cvs-import because it supports branches.
>
> I enhanced the script a bit and plan to send a patch queue for upstream
> merging.
>
> But now i'm can't because the script doesn't work anymore since Matt
> removed old style branch support. I'm now trying to update the branch
> handling code.
>
> I have a few questions about this new branch style:
> - why rawcommit doesn't expose extra param ?
Forgot to add it.
> - the branchcache isn't updated when commiting, this has the side effect
> that the cache isn't coherent. At the moment i do
> repo.branchcache = None
> but it's nasty... is there a better way ?
Not yet, we ought to fix that.
> - when do i need to set the extra = {'branch': branchname}, at each
> commit or just when switching branches ? My experiments seems to prove
> that if i don't do at each commit, even if i invalidate the cache,
> branch tracking gets lost.
Branch names are currently completely ignored by rawcommit. So every
commit right now.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list