"hg since" extension
CG Linden
cg at lindenlab.com
Wed Nov 11 15:12:54 CST 2009
hg log --follow doesn't seem to do what I want:
I have:
| |
o | 8
|/
|
o 7
|\
| |
| o 6
| |
| o 5
| |
o | 4
|/
|
o 3
I want "hg log --follow -r5:" to return changeset 6, 7, 8, AND changeset 4
(which came in via the merge at 7) (we can argue about whether it should
return 5). Unfortunately, it only returns 5,6,7 and 8 and leaves out 4.
--
cg
On Wed, Nov 11, 2009 at 12:59 PM, Gilles Moris <gilles.moris at free.fr> wrote:
> On Wednesday 11 November 2009 08:15:59 pm CG Linden wrote:
> > I'm working on an extension to give me a good answer to the question
> "what
> > changed since revision X". It appears trivially easy. Mark all ancestors
> of
> > the specified revision as "seen", then list all unseen ancestors of
> "tip".
>
> You might also take a look at:
> hg log --follow --no-merges --rev myrev:
>
> From hg help log :
> -f --follow follow changeset history, or file history across copies
> and renames
> --follow without a filename will only show ancestors or descendants of the
> starting revision.
>
> -M --no-merges do not show merges
>
> and from hg help multirevs :
> The syntax of range notation is [BEGIN]:[END], where BEGIN and END are
> revision identifiers. Both BEGIN and END are optional. If BEGIN is not
> specified, it defaults to revision number 0. If END is not specified, it
> defaults to the tip. The range ":" thus means "all revisions".
>
> Regards.
> Gilles.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20091111/6da9939c/attachment.htm>
More information about the Mercurial-devel
mailing list