Using mercurial to manage files in /etc on multiple systems

Chris Green cl at isbd.net
Fri Jun 14 08:38:14 UTC 2024


On Fri, Jun 14, 2024 at 09:05:59AM +0100, Chris Green wrote:
> On Fri, Jun 14, 2024 at 12:17:10AM +0200, Dr. Arne Babenhauserheide via Mercurial wrote:
> > Chris Green <cl at isbd.net> writes:
> > 
> > > Is there a way to manage the files which are the same across multiple
> > > systems and, at the same time, managing the special cases?
> > 
> > You can create named branches for the special cases and `merge` default
> > into these when you do general changes.
> > 
> > If you happen to do a change in the special system that you want in the
> > general systems, you can just commit the change on the special branch
> > and then `graft` it into the default branch.
> > 
> > (using graft avoids disturbing the flow of changes from the default
> > branch into the specialized branches)
> > 
> Thanks Arne, I'll read up about named branches and merge.
> 
> Can one push just a named branch to a remote repository?
> 
It looks like push/pull and named branches will do almost exactly what
I want to do, excellent! :-)

(Sorry about the duplicate post, my filtering system needs a little
tuning!)

-- 
Chris Green


More information about the Mercurial mailing list