Some more cvsimport

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Some more cvsimport

From: Rajkumar S <hidden>
Date: 2016-06-15 22:42:21

Hi all,

Thanks every one for replying to my previous mails and to Smurf for his helpful replies 
and patch.

The cvs project I am trying to track has 2 branchs. One head and another for releng_1. The 
upstream cvs tree gets updated on both branchs. I also make modifications to both. When I 
normally do cvsimport, the releng_1 tree gets updated automatically, but if I have checked 
out the releng_1 branch in my local git repository when cvsimport happens the files do not 
get updated.  I can fix this by checking out the master branch just before cvsimport and 
then switching back.

I am attaching a test script to simulate the problem and the fix is commented out.

raj

Re: Some more cvsimport

From: Matthias Urlichs <hidden>
Date: 2016-06-15 22:42:21

Hi, Rajkumar S wrote:
When I normally do cvsimport, the releng_1
tree gets updated automatically, but if I have checked out the releng_1
branch in my local git repository when cvsimport happens the files do not
get updated.
Don't Do That.

I just removed the "update checked-out tree" logic because it has too many
corner cases.

I could conceivably add a check for HEAD pointing to the CVS branch I'm
just checking out, but on second thought I'd rather wait for the
refs/remotes/ work to show up, and then simply s/heads/remotes/g. ;-)

-- 
Matthias Urlichs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help