Getting multiple matches from reveset queries?
Tony Mechelynck
antoine.mechelynck at gmail.com
Sat Sep 24 09:12:51 UTC 2011
On 24/09/11 11:02, Idan Kamara wrote:
> On Sat, Sep 24, 2011 at 8:39 AM, Jason Harris <jason at jasonfharris.com
> <mailto:jason at jasonfharris.com>> wrote:
> >
> > On Sep 24, 2011, at 5:30 PM, Jason Harris wrote:
> >
> > >
> > > On Sep 24, 2011, at 5:18 PM, Tony Mechelynck wrote:
> > >
> > >> On 24/09/11 07:03, Tony Mechelynck wrote:
> > >>> On 24/09/11 05:36, Jason Harris wrote:
> > >>>> Hi All,
> > >>>>
> > >>>> I have a question about revsets.
> > >>>>
> > >>>> I can't seem to get multiple revset matches out of some of my
> commands
> > >>>> which
> > >>>> look like they should generate multiple revest matches. So for
> example:
> > >>>>
> > >>>> [Volt:/Development/MacHgDev/MacHg] MacHg 834(834) ⌘ hg version
> > >>>> Mercurial Distributed SCM (version 1.9.2+20110831)
> > >>>>
> > >>>> So geting the heads through revsets gives me:
> > >>>> [Volt:/Development/MacHgDev/MacHg] MacHg 834(834) ⌘ hg log -r
> "head()"
> > >>>> --template "{rev}\n"
> > >>>> 505
> > >>>>
> > >>>> Whereas there are actually quite a few heads that are present in
> my repo:
> > >>>> [Volt:/Development/MacHgDev/MacHg] MacHg 834(834) ⌘ hg heads
> > >>>> --template "{rev}\n"
> > >>>> 834
> > >>>> 832
> > >>>> 777
> > >>>> 692
> > >>>> 567
> > >>>> 505
> > >>>>
> > >>>> Similarly using the file syntax I should get a ton of hits here:
> > >>>> [Volt:/Development/MacHgDev/MacHg] MacHg 834(834) ⌘ hg log -r
> > >>>> "file('Classes/Document/MacHgDocument.m')" --template "{rev}\n"
> > >>>> 1
> > >>>>
> > >>>> (ie MacHgDocument.m is changed in hundreds of revisions)
> > >>>>
> > >>>> But I only get rev 1 returned and then no further output. I have
> > >>>> checked and I
> > >>>> am getting the same behavior in Mercurial 1.8.2 as I am in
> 1.9.2. Thus
> > >>>> what am I
> > >>>> doing wrong? How do I get the rest of the matched revs?
> > >>>>
> > >>>> Thanks,
> > >>>> Jas
> > >>>
> > >>>
> > >>> Tony.
> > >>
> > >> P.S.
> > >>
> > >> hg log -r "head()"
> > >>
> > >> gives me (in Mercurial 1.7.5) the same list as
> > >>
> > >> hg heads
> > >>
> > >> also with the --template argument, so therwise I can't tell what
> you would be doing wrong.
> > >
> > > Ahhh... I just tried basically having an empty .hgrc file and then
> things started working for me. I'll go hunt down the offending extension
> / setting now.
> >
> > Ok. I traced this down I had the following in my .hgrc file:
> >
> > [defaults]
> > log = -f
>
> Aren't you setting HGPLAIN before running hg from your GUI?
What GUI? AFAIK, both Jason and I are running hg from the command-line.
Best regards,
Tony.
--
Heller's Law:
The first myth of management is that it exists.
Johnson's Corollary:
Nobody really knows what is going on anywhere within the
organization.
More information about the Mercurial
mailing list