[issue1208] "hg ci" fails when working directory name is longer than 90 bytes

Jim Meyering mercurial-bugs at selenic.com
Mon Jun 30 10:13:04 CDT 2008


New submission from Jim Meyering <list+hg at meyering.net>:

This is using a version of hg built from latest sources a few minutes ago
on a debian unstable system (with python 2.5.2):
    $ hg --version
    Mercurial Distributed SCM (version 1.0.1)
                                   
    $ d=$(perl -e 'print "/tmp/"."x"x86'); \
    mkdir $d && cd $d && hg init && touch f && hg add f && hg ci -m.; \
    rm -rf $d
    adding f
    Traceback (most recent call last):
      File "/usr/bin/hg", line 20, in <module>
        mercurial.dispatch.run()
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 20,
in run
        sys.exit(dispatch(sys.argv[1:]))
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 29,
in dispatch
        return _runcatch(u, args)
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 93,
in _runcatch
        ui.warn(_("abort: %s\n") % inst[1])
    IndexError: tuple index out of range


The above may look contrived, but the underlying bug
caused a new test failure in my vc-dwim package.


Rerunning the failing command with --traceback gives this:

    $ hg --traceback ci -m.
    Traceback (most recent call last):
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 45,
in _runcatch
        return _dispatch(ui, args)
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 364,
in _dispatch
        ret = _runcommand(ui, options, cmd, d)
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 417,
in _runcommand
        return checkargs()
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 373,
in checkargs
        return cmdfunc()
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 356,
in <lambda>
        d = lambda: func(ui, repo, *args, **cmdoptions)
      File "/var/lib/python-support/python2.5/mercurial/commands.py", line 557,
in commit
        node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
      File "/var/lib/python-support/python2.5/mercurial/cmdutil.py", line 1179,
in commit
        return commitfunc(ui, repo, files, message, match, opts)
      File "/var/lib/python-support/python2.5/mercurial/commands.py", line 555,
in commitfunc
        force_editor=opts.get('force_editor'))
      File "/var/lib/python-support/python2.5/hgext/mq.py", line 2189, in commit
        return super(mqrepo, self).commit(*args, **opts)
      File "/var/lib/python-support/python2.5/mercurial/localrepo.py", line 774,
in commit
        changes = self.status(match=match)[:5]
      File "/var/lib/python-support/python2.5/mercurial/localrepo.py", line
1011, in status
        list_unknown)
      File "/var/lib/python-support/python2.5/hgext/inotify/__init__.py", line
55, in status
        list_clean, list_unknown)
      File "/var/lib/python-support/python2.5/hgext/inotify/client.py", line 17,
in query
        sock.connect(sockpath)
      File "<string>", line 1, in connect
    error: AF_UNIX path too long
    Traceback (most recent call last):
      File "/usr/bin/hg", line 20, in <module>
        mercurial.dispatch.run()
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 20,
in run
        sys.exit(dispatch(sys.argv[1:]))
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 29,
in dispatch
        return _runcatch(u, args)
      File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line 93,
in _runcatch
        ui.warn(_("abort: %s\n") % inst[1])
    IndexError: tuple index out of range

----------
messages: 6450
nosy: meyering
priority: bug
status: unread
title: "hg ci" fails when working directory name is longer than 90 bytes

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue1208>
____________________________________________________



More information about the Mercurial-devel mailing list