[BUG] http proxy overriding problem / env var problem on the other OS
K Thananchayan
thananck at yahoo.com
Thu Aug 4 10:35:50 UTC 2005
Hi,
--- Edouard Gomez <ed.gomez at free.fr> wrote:
> Selon K Thananchayan <thananck at yahoo.com>:
> > Can you please try:
> > hg --traceback pull http://www.selenic.com/hg
> > With traceback option, hg shoud print the stack
> trace
> > of the exception.
>
> Traceback (most recent call last):
> File
>
"D:\Programs\msys\home\edgomez\mercurial-snapshot\mercurial\commands.py",
> line 1391, in dispatch
> return d()
> File
>
"D:\Programs\msys\home\edgomez\mercurial-snapshot\mercurial\commands.py",
> line 1376, in <lambda>
> d = lambda: func(u, repo, *args, **cmdoptions)
> File
>
"D:\Programs\msys\home\edgomez\mercurial-snapshot\mercurial\commands.py",
> line 812, in pull
> other = hg.repository(ui, source)
> File
>
"D:\Programs\msys\home\edgomez\mercurial-snapshot\mercurial\hg.py",
> line
> 2001, in repository
> return httprepository(ui, path)
> File
>
"D:\Programs\msys\home\edgomez\mercurial-snapshot\mercurial\hg.py",
> line
> 1774, in __init__
> del os.environ[env]
> File "d:\Programs\python\lib\os.py", line 430, in
> __delitem__
> unsetenv(key)
> File "d:\Programs\python\lib\os.py", line 405, in
> unsetenv
> putenv(key, "")
> OSError: [Errno 2] No such file or directory
> abort: No such file or directory: None
In my case (Windows XP, SP1), I don't have this
happening under both Python 2.3.3 and Python 2.4.1.
What is your OS version?
> > > Applied. Sorry i never reach this code. But i
> can
> > > output bits of information earlier.
> >
> > I am puzzled!
>
> I was not, i knew the exception was thrown from the
> env var deletion loop. Once
> i commented this loop, i had no problem pulling (at
> the expense that hgrc
> values could be overriden by the env vars).
You might want to try the attached patch. It basically
ignores any exceptions thrown by del os.environ[env].
However, in your case os.environment might still have
the entry intact.
After applying the patch, would you mind running hg
again with the print statements I suggested earlier
with the following statment appended.
print "ui.cdata._sections",
ui.cdata._sections
The output should help in figuring out what is
happening?
> > In any case, I wouder if any settings in ~/.hgrc
> is
> > noticed by hg?
> >
> > Could you please add a section
> >
> > [http_proxy]
> > host=http://127.0.0.1:6666/
> >
> > to the rc file
> > D:/Programs/msys/home/edgomez/.hgrc
> >
> > and try to pull again?
>
> I'll try to test this as soon as i have a little
> more time, work is slowly
> stacking on my desk :-)
Thanks,
-thanan
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
More information about the Mercurial
mailing list