MQ history linked to main repository history

Alpár Jüttner alpar at cs.elte.hu
Mon Apr 7 10:36:29 UTC 2008


Hi,

Is that safe to use the revision number for this purpose? Wouldn't it be
better to use the (permanent) hash id instead?

Alpar

On Mon, 2008-04-07 at 11:43 +0200, Vladimir Marek wrote:
> Hi,
> 
> I do keep set of patches in mq repository and every time I update the
> main repository, I sync my patches. I would like to be able to go back
> in time and find out that when the main repo was in revision REV, the
> corresponding patch in MQ was in revision MQ_REV.
> 
> My solution so far is that for every change in MQ I add the main repo
> revision to the commit comment. So my commit log in MQ looks like:
> 
> ========================================================================
> ...
> changeset:   29:021bb972dd00
> user:        Vladimir Marek <Vladimir.Marek at Sun.COM>
> date:        2008-03-21 03:22 +0100
> log:
> 3952 2008-03-21 03-22-15
> --------------------------------------------------------------------
> changeset:   28:a2f8afe4646a
> user:        Vladimir Marek <Vladimir.Marek at Sun.COM>
> date:        2008-03-14 09:54 +0100
> log:
> 3874 2008-03-14 09-54-17
> --------------------------------------------------------------------
> changeset:   27:3e002dae7341
> user:        Vladimir Marek <Vladimir.Marek at Sun.COM>
> date:        2008-02-26 03:24 +0100
> log:
> 3640 2008-02-26 03-24-00
> ...
> ========================================================================
> 
> I can see that MQ revision 28 is applicable to main repo from revisions
> 3874 to 3951.
> 
> Is there anything more clever/automated ?
> 
> Thanks
> 
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial




More information about the Mercurial mailing list