Knowing the "history as it was in repo X"
Alexis S. L. Carvalho
alexis at cecm.usp.br
Fri Feb 22 16:42:08 CST 2008
Thus spake Dirkjan Ochtman:
> Benjamin Smedberg <benjamin <at> smedbergs.us> writes:
> > One of the problems we're trying to solve with the Mozilla deployment of
> > mercurial is being able to walk file history linearly backwards along a
> > particular line of development. More precisely, people want to know which
> > revisions were the tip of shared repositories such as mozilla-central.
>
> I talked to bsmedberg about this on IRC for a bit. Don't know if I got
> everything right there, so comments appreciated.
>
> 16:34 <@bsmedberg> djc: take the following example:
> 16:34 < djc> tagging nor branching seem to really fit the bill to do something
> like that
> 16:34 < djc> (as it stands)
> 16:34 <@bsmedberg> Mozilla-central is A-B-C
> 16:34 <@bsmedberg> somebody branches A, does
> 16:35 <@bsmedberg> A-D-E
> 16:35 <@bsmedberg> then merges C+E=F
> 16:35 < djc> sure
> 16:35 <@bsmedberg> and pushes to mozilla-central
> 16:35 <@bsmedberg> people want to be able to walk backwards through F-C-B-A
> 16:35 <@bsmedberg> while ignoring D-E
I'm not sure this is exactly what you want, but have you looked at
hg log --follow-first ?
(e.g. "hg log --follow-first -r F:0")
Alexis
More information about the Mercurial
mailing list