[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] vc-hg keep working when hg emits warnings
From: |
Dan Nicolaescu |
Subject: |
Re: [PATCH] vc-hg keep working when hg emits warnings |
Date: |
Wed, 04 Aug 2010 13:02:28 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
Sascha Wilde <address@hidden> writes:
> Hi *,
>
> related to my latest post (regarding hgrc handling):
BTW, better send patches to bug-gnu-emacs, they won't get lost that way.
> When one works on an hg repository with an .hg/hgrc owned by someone
> else, hg emits a warning like:
>
> Not trusting file /home/foo/argh/.hg/hgrc from untrusted user foo, group foo
>
> on stderr.[1]
>
> Despite the warning hg still works as expected (ignoring the
> repositories hgrc). So ignoring the warning is TRTTD for Emacs.
> Currently the warning text confuses vc, so that certain commands and the
> revision display in the status bare don't work correctly.
>
> The following patch achieves this by simply ignoring all output on
> stderr for vc-hg-state and vc-hg-working-revision.
>
> This might seem a little brute force, but its the most simple solution
> and I believe it should be free of unwanted side effects:
IMHO this is not good, there might be other reasons for hg to give
warnings, and the user would have no way to find out about it.
Is there a command line flag to turn off this warning?
A more robust option would be to change the parser to deal with the warning...