Wednesday Jul 16, 2008

My summary was perhaps a bit strongly worded, because I'm really describing an organizational issue, not a political one.  But it's confusing people, so I'll belabor the point:


Once we switch to Mercurial, the open-source and closed-source portions of ON become separate repositories.



If you pull from one respository, you won't get any updates in the other.  So if you're in the habit of doing full builds, you'll need two separate hg pull commands to get everything.


You can't hg pull usr/closed from the root of your open-source repository.  Because that will attempt to overlay the closed source in the open repository, almost certainly not what you're trying to do.


% cd $MY_REPO/usr/closed
% hg pull
% cd $MY_REPO
% hg pull

It's the only way. Two separate commands. The same goes for generating code reviews:


% cd $MY_REPO/usr/closed
% webrev
% cd $MY_REPO
% webrev
% mv webrev ../../webrev-closed

It's the only way. Two separate commands. The same goes for recommitting your changes:


% cd $MY_REPO/usr/closed
% hg recommit
<output elided>
% cd $MY_REPO
% hg pull
% hg recommit
<output elided>

It's the only way. Two separate commands. The same goes for pushing your changes:


% cd $MY_REPO/usr/closed
% hg push
% cd $MY_REPO
% hg push

It's the only way. Two separate commands.


Anyway, you get the picture.


Did I mention that I planned to belabor this point? 

Comments:

Post a Comment:
Comments are closed for this entry.