You can put a "trusted" line in your .hgrc to avoid the warnings.

You can specify a file list for webrev, either by entering files on the 
command line or by listing them in "wx active" format.  (You can use 
hg-active > my_list, edit my_list, and pass it to webrev with -w.)

The intent of the warning: it's possible that the remote repo's hgrc could 
cause code to run as you.  Without you knowing/authorizing that. 
Requiring you to explicitly trust the owner is a bandaid to allow that.

See hgrc(5) manpage for details on the "trusted" section.

--Mark



On Thu, 17 Jul 2008, Robert Thurlow wrote:

> Date: Thu, 17 Jul 2008 14:48:00 -0600
> From: Robert Thurlow <Robert.Thurlow at Sun.COM>
> To: Eric Schrock <Eric.Schrock at Sun.COM>
> Cc: tools-discuss at opensolaris.org, on-discuss at opensolaris.org,
>     scm-migration-dev at opensolaris.org
> Subject: Re: [tools-discuss] Flag Day: onnv-gate transition to Mercurial: T
>     minus 3+ weeks and counting
> 
> Robert Thurlow wrote:
>
>> Do we need the "Not trusting file" message?  If it happens every
>> time we do anything, it's beyond useless.  Or can someone explain
>> the intent and how to configure things so we only see it when it
>> matters?
>
> Oh great, it causes other problems, too:
>
> anthrax[80]% pwd
> /net/boora.central/brmnas/thurlow/p-hg
> anthrax[81]% webrev
>    SCM detected: mercurial
>  File list from: hg-active -p
> ssh://thurlow at aus1500-home.central//pool/ws/nfs41-gate-hg ... Done.
>       Workspace: /net/boora.central/brmnas/thurlow/p-hg (at d538b5a51aaf)
> Compare against:
> ssh://thurlow at aus1500-home.central//pool/ws/nfs41-gate-hg (at d538b5a51aaf)
>       Output to: /net/boora.central/brmnas/thurlow/p-hg/webrev
>    Output Files:
>         remote:
>                 *** Error: file not in parent or child
>         remote:
>                 *** Error: file not in parent or child
>         usr/src/uts/common/dserv/dserv_server.c
>                  patch cdiffs udiffs wdiffs sdiffs frames ps old new
>         usr/src/uts/common/fs/nfs/ds_srv.c
>                  patch cdiffs udiffs wdiffs sdiffs frames ps old new
>         usr/src/uts/common/fs/nfs/nfs41_srv.c
>                  patch cdiffs udiffs wdiffs sdiffs frames ps old new
>         usr/src/uts/common/fs/nfs/nnode.c
>                  patch cdiffs udiffs wdiffs sdiffs frames ps old new
>         usr/src/uts/common/nfs/mds_state.h
>                  patch cdiffs udiffs wdiffs sdiffs frames ps old new
>         usr/src/uts/common/nfs/nnode.h
>                  patch cdiffs udiffs wdiffs sdiffs frames ps old new
>  Generating PDF: Done.
>      index.html: Done.
>
> Is the 'remote:' noise coming from where I think it is?
>
> anthrax[82]% hg-active -p
> ssh://thurlow at aus1500-home.central//pool/ws/nfs41-gate-hg -w .
> remote: Not trusting file /pool/ws/nfs41-gate-hg/.hg/hgrc from untrusted
> user th199096, group staff
> remote: Not trusting file /pool/ws/nfs41-gate-hg/.hg/hgrc from untrusted
> user th199096, group staff
> ...
>
> Yup.
>
> Please folks, config advice is needed out here.
>
> Rob T
> _______________________________________________
> tools-discuss mailing list
> tools-discuss at opensolaris.org
>

Reply via email to