Help: How to manage a set of files within several different repos

Ted Pavlic ted at tedpavlic.com
Fri Feb 6 10:16:57 CST 2009


Merc-ticians/Mercenaries --

	I have several (n) repositories...

repo1/
repo2/
repo3/
repo4/
...
repon/

each of which use a "suite" of Makefiles:

Makefile.doc
Makefile.dir
Makefile.www
...

(that are customized by including them in Makefiles that set 
configuration variables ahead of the include) Every "Makefile.doc" is 
identical to every other "Makefile.doc." And so when I add a feature/fix 
a bug in "Makefile.doc", I have to commit it n times.

	Ideally, I would like to be able to change Makefile.doc *once* and have 
those changes ripple through all of the other repos. I know that I could 
put all of them elsewhere and have each repo depend on that "elsewhere," 
but I distribute these repos publicly and I'd like them to be able to 
stand alone. I would be OK with having something like...

repo1/
repo2/
...
repon/
Makfiles/

and then using an "hg export" to somehow merge the two commit histories 
so that the publicly available "repo1" includes the Makefile.* files 
with their commit histories.

	Is something like that possible?

	TIA --
	Ted


-- 
Ted Pavlic <ted at tedpavlic.com>

   Please visit my ALS association page:
         http://web.alsa.org/goto/tedpavlic
   My family appreciates your support in the fight to defeat ALS.


More information about the Mercurial mailing list