Pre-commit hook ignoring rc

2016-11-03 Thread Peter Kronenberg
I've got a pre-commit hook written in Python that's been working ok, but
all of a sudden seems to be ignoring the return value.  I return True if I
don't want to commit to proceed.  But it's committing anyway.  Running
3.9.2.  Has anything changed recently?

Peter
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: Pre-commit hook ignoring rc

2016-11-04 Thread Peter Kronenberg
Thanks to Murphy's law, after spending the afternoon trying to figure out
what was wrong, I found the problem about 5 minutes after posting this
email. User error:-)

On Nov 4, 2016 4:30 AM, "Pierre-Yves David" <pierre-yves.da...@ens-lyon.org>
wrote:

>
>
> On 11/03/2016 07:45 PM, Peter Kronenberg wrote:
>
>> I've got a pre-commit hook written in Python that's been working ok, but
>> all of a sudden seems to be ignoring the return value.  I return True if
>> I don't want to commit to proceed.  But it's committing anyway.  Running
>> 3.9.2.  Has anything changed recently?
>>
>
> Nothing should have changed there.
>
> Can you file a bug at http://bz.mercurial-scm.org/ with more details ?
>
> Thanks,
>
> --
> Pierre-Yves David
>
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


revset arguments on 2.2.1

2016-10-13 Thread Peter Kronenberg
I have a server running 2.2.1 and I can't figure out the arguments for the
result of revset.match

In my 3.9.2 code, I have

revsetQuery = ' ***query goes here*** '
revsetResult = revset.match(ui, revsetQuery)

Now, I want to reference revsetResult(repo) or revsetResult(repo. None),
both of which work in 3.9.2

But 2.2.1 doesn't like the second argument.  It's supposed to be a subset,
but not sure what to put if I don't want to specify a subset.

can anyone help?

thanks
Peter
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Re: revset arguments on 2.2.1

2016-10-13 Thread Peter Kronenberg
Thanks.  Didn't realize that.  How does one tell what is the 'top-level'
way to do things?  The documentation is somewhat sparse, to say the least.

On Thu, Oct 13, 2016 at 6:10 PM, Pierre-Yves David <
pierre-yves.da...@ens-lyon.org> wrote:

>
>
> On 10/13/2016 09:44 PM, Peter Kronenberg wrote:
>
>> I have a server running 2.2.1 and I can't figure out the arguments for
>> the result of revset.match
>>
>> In my 3.9.2 code, I have
>>
>> revsetQuery = ' ***query goes here*** '
>> revsetResult = revset.match(ui, revsetQuery)
>>
>
> Any reasons you are using revset.match directly?
>
> The top level way to query a reset from a repository is
> `repo.set(your_query_goes_here)`.
>
> Now, I want to reference revsetResult(repo) or revsetResult(repo. None),
>> both of which work in 3.9.2
>>
>> But 2.2.1 doesn't like the second argument.  It's supposed to be a
>> subset, but not sure what to put if I don't want to specify a subset.
>>
>
> --
> Pierre-Yves David
>
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Installation-specific ini file

2017-04-07 Thread Peter Kronenberg
I've installed a server on my Windows machine under Apache.  I want to
create an installation-specific mercurial.ini, so that it doesn't use the
ini file in my User directory.  But I can't find the proper location.  I
have the hg.exe file in c:\Python27\Scripts.  I thought that mercurial.ini
should go into the same directory, but that doesn't seem to work.  What is
the proper location?

thanks
Peter
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


Server logs

2017-04-07 Thread Peter Kronenberg
I've successfully set up a Mercurial server on Windows running under
Apache. But I can't find where the Mercurial logs are. I see access.log and
error.log, but that just contains non-Hg specific info about the
transactions. Where does the Hg Server log go?

thanks

Peter
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel