Help: How to manage a set of files within several different repos
Arne Babenhauserheide
arne_bab at web.de
Sat Feb 7 05:18:17 CST 2009
Am Freitag 06 Februar 2009 17:16:57 schrieb Ted Pavlic:
> each of which use a "suite" of Makefiles:
>
> Makefile.doc
> Makefile.dir
> Makefile.www
>
> 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.
You could create a "project template" repository which only contains the
makefiles
template/
Makefile.doc
Makefile.dir
Makefile.www
This template repository you then pull --force into each of the repositories
and merge it.
When you change a makefile, you do it in the template and pull + merge / fetch
the change into your repositories.
The only catch is that you have get the fix in the template folder before
letting it ripple through, but you should be able to just transplant it from
another repo, when you did the fix there.
To make this more convenient, you can add the path to the templates to the
paths for each repo:
.hg/hgrc:
[paths]
template = path/to/template
You can then just pull changes from there via "hg pull template"
Best wishes,
Arne
--
-- Ein Würfel System: http://1w6.org - einfach saubere (Rollenspiel-) Regeln.
-- Infinite Hands: http://infinite-hands.draketo.de - singing a part of the
history of free software.
-- My stuff: http://draketo.de - stories, songs, poems, programs and stuff :)
-- PGP/GnuPG: http://draketo.de/inhalt/ich/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://selenic.com/pipermail/mercurial/attachments/20090207/8c0fae04/attachment.pgp
More information about the Mercurial
mailing list