progress extension causes hg (3.5.1) convert to fail

timeless timeless at gmail.com
Thu Jan 14 22:05:17 CST 2016


On Jan 10, 2016 6:12 PM, "Kevin O. Grover" <kevin at kevingrover.net> wrote:
>
> I have not re-run the this to verify that it's not a network issue.  I
wanted to report it before I forgot.
> (It takes quite some time).
>
>
> Windows 10 Home using cygwin (just updated)
>
> $ uname -a
> CYGWIN_NT-10.0 granite 2.3.1(0.291/5/3) 2015-11-14 12:44 x86_64 Cygwin
>
> $ hg version
> Mercurial Distributed SCM (version 3.5.1)
>
> $ which hg
> /usr/bin/hg
>
> $ hg convert https://svn.FreeBSD.org/doc/head freebsd-doc-head-hg
>
> ....
> 5851 Add a link to ServerFault for FreeBSD specific questions.
> 5850 Correct the answer about tape drives.
> 5849 - Minor grammatical corrections in the 2013Q1 status report
> 5848 Merge the XML toolchain upgrade, which contains the following
changes:
> ** Unknown exception encountered with possibly-broken third-party
extension progress
> ** which supports versions unknown of Mercurial.

So, this message is odd, progress has been a core extension of Mercurial
for a really long time.

Out of curiosity, and not related to your flaky subversion server, can we
see why it's listed as third party?

The current version of Mercurial is 3.6.3 (a 3.7 is coming).

In current, there should be:
hg debugextension
hg debugconfig extensions.progress

> ** Please disable progress and try your action again.
> ** If that fixes the bug please report it to the extension author.
> ** Python 2.7.10 (default, Jun  1 2015, 18:05:38) [GCC 4.9.2]
> ** Mercurial Distributed SCM (version 3.5.1)
> ** Extensions loaded: churn, color, convert, eol, extdiff, graphlog, hgk,
progress, purge, rebase
> Traceback (most recent call last):
>   File "/usr/bin/hg", line 43, in <module>
...
>   File "/usr/lib/python2.7/site-packages/hgext/convert/subversion.py",
line 790, in expandpaths
>     for childpath in self._iterfiles(path, revnum):
>   File "/usr/lib/python2.7/site-packages/hgext/convert/subversion.py",
line 995, in _iterfiles
>     entries = svn.client.ls(rpath, optrev(revnum), True, self.ctx, pool)
>   File "/usr/lib/python2.7/site-packages/libsvn/client.py", line 1434, in
svn_client_ls
>     return _client.svn_client_ls(*args)
> svn.core.SubversionException: 170013 - Unable to connect to a repository
at URL 'https://svn.freebsd.org/doc/head/it_IT.ISO8859-15/share/xsl'
> 670008 - None

I'm not sure we can do much to improve this error message, it's pretty self
explanatory. It's also a couple of layers down in the subversion library.

Convert/subversion could try to catch this exception and report it
differently.

The reason we have the message at the top is that sometimes third i party
extensions monkey around with things and we'd rather people check to see if
perhaps disabling then will fix the problem.

Unfortunately, intermittent network failures, as happened here, can also
result in misleading correlation. Please remember that correlation is not
always causation. We could try to improve our upper message, but I'm not
sure offhand what we could make it say.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20160114/28c44461/attachment.html>


More information about the Mercurial-devel mailing list