[Bug 5933] New: Errors updating to branch when cloning

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Tue Jul 3 17:14:45 UTC 2018


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

            Bug ID: 5933
           Summary: Errors updating to branch when cloning
           Product: Mercurial
           Version: 4.5.3
          Hardware: PC
                OS: Windows
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: mast at colorado.edu
                CC: mercurial-devel at mercurial-scm.org

Cloning my repository with the -r option and a branch tag fails with a
TypeError:
 hg clone -r IMOD_4-9 http://bio3d.colorado.edu/imod/nightlyBuilds/IMOD
IMOD-hgtest
adding changesets
adding manifests
adding file changes
added 31946 changesets with 48532 changes to 5434 files
new changesets 14fb4137f74b:8e6f39ae0115
updating to branch IMOD_4-9
Exception in thread Thread-8:
Traceback (most recent call last):
  File "threading.pyc", line 801, in __bootstrap_inner
  File "mercurial\worker.pyc", line 231, in run
  File "mercurial\merge.pyc", line 1380, in batchget
  File "mercurial\context.pyc", line 1282, in data
  File "hgext\keyword.pyc", line 368, in read
  File "hgext\keyword.pyc", line 273, in expand
  File "hgext\keyword.pyc", line 263, in substitute
  File "hgext\keyword.pyc", line 260, in kwsub
  File "mercurial\cmdutil.pyc", line 1695, in show
  File "mercurial\cmdutil.pyc", line 2007, in _show
  File "mercurial\templatefilters.pyc", line 372, in stringify
  File "mercurial\util.pyc", line 1017, in increasingchunks
  File "mercurial\templater.pyc", line 1272, in _flatten
  File "mercurial\templater.pyc", line 413, in runtemplate
  File "mercurial\templater.pyc", line 311, in evalrawexp
  File "mercurial\templater.pyc", line 429, in runfilter
  File "mercurial\templater.pyc", line 315, in evalfuncarg
  File "mercurial\templater.pyc", line 311, in evalrawexp
  File "mercurial\templater.pyc", line 404, in runsymbol
  File "mercurial\templatekw.pyc", line 355, in showauthor
  File "mercurial\context.pyc", line 619, in user
  File "mercurial\util.pyc", line 933, in __get__
  File "mercurial\context.pyc", line 583, in _changeset
  File "mercurial\changelog.pyc", line 481, in changelogrevision
  File "mercurial\revlog.pyc", line 1723, in revision
TypeError: 'NoneType' object has no attribute '__getitem__'

** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64
bit (AMD64)]
** Mercurial Distributed SCM (version 4.5.3)
** Extensions loaded: fetch, extdiff, hgk, keyword, transplant
Traceback (most recent call last):
  File "hg", line 41, in <module>
  File "mercurial\dispatch.pyc", line 88, in run
  File "mercurial\dispatch.pyc", line 183, in dispatch
  File "mercurial\dispatch.pyc", line 324, in _runcatch
  File "mercurial\dispatch.pyc", line 332, in _callcatch
  File "mercurial\scmutil.pyc", line 154, in callcatch
  File "mercurial\dispatch.pyc", line 314, in _runcatchfunc
  File "mercurial\dispatch.pyc", line 918, in _dispatch
  File "mercurial\dispatch.pyc", line 673, in runcommand
  File "mercurial\dispatch.pyc", line 926, in _runcommand
  File "mercurial\dispatch.pyc", line 915, in <lambda>
  File "mercurial\util.pyc", line 1195, in check
  File "mercurial\commands.pyc", line 1449, in clone
  File "mercurial\hg.pyc", line 716, in clone
  File "mercurial\hg.pyc", line 745, in update
  File "mercurial\hg.pyc", line 741, in updaterepo
  File "mercurial\merge.pyc", line 2013, in update
  File "mercurial\merge.pyc", line 1492, in applyupdates
  File "mercurial\worker.pyc", line 283, in _windowsworker
TypeError: 'NoneType' object has no attribute '__getitem__'

while cloning without -r gives an IndexError:

requesting all changes
adding changesets
adding manifests
adding file changes
added 34792 changesets with 52210 changes to 5614 files
new changesets 14fb4137f74b:bdefdee51641
updating to branch default
Exception in thread Thread-6:
Traceback (most recent call last):
  File "threading.pyc", line 801, in __bootstrap_inner
  File "mercurial\worker.pyc", line 231, in run
  File "mercurial\merge.pyc", line 1380, in batchget
  File "mercurial\context.pyc", line 1282, in data
  File "hgext\keyword.pyc", line 368, in read
  File "hgext\keyword.pyc", line 273, in expand
  File "hgext\keyword.pyc", line 263, in substitute
  File "hgext\keyword.pyc", line 261, in kwsub
  File "mercurial\ui.pyc", line 875, in popbuffer
IndexError: list index out of range

** unknown exception encountered, please report by visiting
** https://mercurial-scm.org/wiki/BugTracker
** Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64
bit (AMD64)]
** Mercurial Distributed SCM (version 4.5.3)
** Extensions loaded: fetch, extdiff, hgk, keyword, transplant
Traceback (most recent call last):
  File "hg", line 41, in <module>
  File "mercurial\dispatch.pyc", line 88, in run
  File "mercurial\dispatch.pyc", line 183, in dispatch
  File "mercurial\dispatch.pyc", line 324, in _runcatch
  File "mercurial\dispatch.pyc", line 332, in _callcatch
  File "mercurial\scmutil.pyc", line 154, in callcatch
  File "mercurial\dispatch.pyc", line 314, in _runcatchfunc
  File "mercurial\dispatch.pyc", line 918, in _dispatch
  File "mercurial\dispatch.pyc", line 673, in runcommand
  File "mercurial\dispatch.pyc", line 926, in _runcommand
  File "mercurial\dispatch.pyc", line 915, in <lambda>
  File "mercurial\util.pyc", line 1195, in check
  File "mercurial\commands.pyc", line 1449, in clone
  File "mercurial\hg.pyc", line 716, in clone
  File "mercurial\hg.pyc", line 745, in update
  File "mercurial\hg.pyc", line 741, in updaterepo
  File "mercurial\merge.pyc", line 2013, in update
  File "mercurial\merge.pyc", line 1492, in applyupdates
  File "mercurial\worker.pyc", line 283, in _windowsworker
IndexError: list index out of range

This works with various lower versions.  The highest mrecurial I am running on
other machines is 4.3.3 on Windows 10.

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


More information about the Mercurial-devel mailing list