<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=gb2312 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18812"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT size=2 face=宋体>
<DIV><FONT size=2 face=宋体>Hi all,</FONT></DIV>
<DIV><FONT size=2 face=宋体></FONT> </DIV>
<DIV><FONT size=2 face=宋体>I have a project which has three branches:LRU, LFU,
MRD. Each branch has some files different from other branches, such as a.file,
b.file. At the same time, all the branches share some code files, such as
c.file, d.file, e.file. All these files exist in the same directory (of course,
in practical usage, some of them are in the same directory, some are not). I
want to define a main module which contains c.file, d.file, e.file and three
parent module LRU, LFU, MRD which manage a.file, b.file and has the main module
as their child. Each module maintains his own version
information. Such a module structure can guarantee that changes to main module
can be instantly reflected in each branch and changes to one branch do not
influence other branches, so no more merge needed.</FONT></DIV>
<DIV><FONT size=2 face=宋体></FONT> </DIV>
<DIV><FONT size=2 face=宋体>hg/git subproject and cvs module all have the same
limit: each module or subproject must in an individual directory. Maybe the
named branch in Mercurial can be modified for this requirement.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=宋体></FONT> </DIV>
<DIV><FONT size=2 face=宋体>Any other solutions?</FONT></DIV>
<DIV><FONT size=2 face=宋体></FONT> </DIV>
<DIV><FONT size=2 face=宋体></FONT> </DIV>
<DIV><FONT size=2 face=宋体></FONT> </DIV>
<DIV><FONT size=2 face=宋体>Thanks.</FONT></DIV></FONT></DIV></BODY></HTML>