[Bug 5311] New: Error when commiting any file

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Fri Jul 22 09:22:28 EDT 2016


https://bz.mercurial-scm.org/show_bug.cgi?id=5311

            Bug ID: 5311
           Summary: Error when commiting any file
           Product: Mercurial
           Version: 3.6.1
          Hardware: PC
                OS: Linux
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: juanma_lace at hotmail.com
                CC: mercurial-devel at selenic.com

(project)➜  project hg:(default) ✗ hg commit -m "PLANT-190" project/models.py
** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2]
** Mercurial Distributed SCM (version 3.6.1)
** Extensions loaded: 
Traceback (most recent call last):
  File "/home/django/project/bin/hg", line 43, in <module>
    mercurial.dispatch.run()
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 54, in run
    sys.exit((dispatch(request(sys.argv[1:])) or 0) & 255)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 116, in dispatch
    ret = _runcatch(req)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 187, in _runcatch
    return _dispatch(req)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 920, in _dispatch
    cmdpats, cmdoptions)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 679, in runcommand
    ret = _runcommand(ui, options, cmd, d)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 1051, in _runcommand
    return checkargs()
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 1011, in checkargs
    return cmdfunc()
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/dispatch.py",
line 917, in <lambda>
    d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/util.py",
line 801, in check
    return func(*args, **kwargs)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/commands.py",
line 1584, in commit
    node = cmdutil.commit(ui, repo, commitfunc, pats, opts)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/cmdutil.py",
line 2491, in commit
    return commitfunc(ui, repo, message, matcher, opts)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/commands.py",
line 1578, in commitfunc
    extra=extra)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/localrepo.py",
line 64, in wrapper
    return orig(repo.unfiltered(), *args, **kwargs)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/localrepo.py",
line 1550, in commit
    allowemptycommit = (wctx.branch() != wctx.p1().branch()
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/context.py",
line 533, in branch
    return encoding.tolocal(self._changeset[5].get("branch"))
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/util.py",
line 534, in __get__
    result = self.func(obj)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/context.py",
line 502, in _changeset
    return self._repo.changelog.read(self.rev())
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/changelog.py",
line 338, in read
    text = self.revision(node)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py",
line 1110, in revision
    bins = self._chunks(chain, df=_df)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py",
line 1015, in _chunks
    self._chunkraw(revs[0], revs[-1], df=df)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py",
line 990, in _chunkraw
    return self._getchunk(start, length, df=df)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py",
line 981, in _getchunk
    return self._loadchunk(offset, length, df=df)
  File
"/home/django/project/local/lib/python2.7/site-packages/mercurial/revlog.py",
line 966, in _loadchunk
    return util.buffer(d, offset - realoffset, length)
ValueError: size must be zero or positive

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list