[PATCH 2 of 2] version: add extensions version info (issue4209)

Aurélien Campéas aurelien.campeas at logilab.fr
Mon Jun 30 10:31:41 CDT 2014


On 20/06/2014 23:12, anatoly techtonik wrote:
> On Thu, Jun 19, 2014 at 4:37 AM, Greg Ward <greg at gerg.ca
> <mailto:greg at gerg.ca>> wrote:
> 
>     On 18 June 2014, anatoly techtonik said:
>     > I've setup drone.io <http://drone.io> to run tests
> 
>     Oh nice! I didn't know about drone.io <http://drone.io>. Glad to see
>     someone has done a
>     more generalized version of travis.
> 
> 
> And they've made it a 3-click setup for open source repositories.
>  
> 
>       $ grep -n 'error getting current working directory' `hg locate -I
>     "**.py"`
>       mercurial/dispatch.py:613:        raise util.Abort(_("error
>     getting current working directory: %s") %
> 
>     From the surrounding code:
> 
>         try:
>             wd = os.getcwd()
>         except OSError, e:
>             raise util.Abort(_("error getting current working directory:
>     %s") %
>                              e.strerror)
> 
>     Huh. That's not good. Any environment where you can't call os.getcwd()
>     is not a working environment.
> 
> 
> The environment is ok:
> 
>     $ python -c 'import os; print os.getcwd()'
>     /home/ubuntu/src/bitbucket.org/techtonik/hg
> <http://bitbucket.org/techtonik/hg>
> 
> From https://drone.io/bitbucket.org/techtonik/hg/7
> So it is not a problem in os.getcwd()

It must be a bit subtle. I spent a couple of hours tracking this
a few months ago and to me it looks like drone.io has a problem.

It does fail deterministically, but not all instances
of os.getcwd() fail.

I did send a mail to the technical contact, but didn't get
anything in return.

Regards,
Aurélien.



More information about the Mercurial-devel mailing list