two-way sync, without branches
Bela Babik
teki321 at gmail.com
Tue Jul 17 01:36:38 UTC 2007
Maybe you could try to use mq.
On 7/17/07, Yakov Lerner <iler.ml at gmail.com> wrote:
> On 7/17/07, Yakov Lerner <iler.ml at gmail.com> wrote:
> > I need to use hg for two-way sync between two or more hosts
> > using the intermediate "bare" repo. Without branches.
> > I tried this sequence:
> >
> > hg commit -A -m changes
> > hg pull; hg update; hg push;
> >
> > The branch got created, which I want to avoid.
> >
>
>
> OK, thanks to Hollis Blanchard on IRC who figured
> the push/pull sequence that does not create any new heads.
> I want to show it on the list in case anybody sees problems with this:
>
> hg diff >/tmp/temp.diff
> hg revert -a
> hg pull -u -v;
> patch -p1 < /tmp/temp.diff
> hg commit -A -m changes;
> hg push
>
> Are there any hidden problems in it ?
> I am not sure the diff/patch will handle removed files and dirs.
>
> Yakov
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
>
More information about the Mercurial
mailing list