Mercurial > hg
comparison tests/test-narrow-sparse.t @ 41149:76dcf7958c5f
tests: show that debugrebuilddirstate is broken with narrow+sparse
This adds a test to show that debugrebuildirstate is broken when both narrow and
sparse extensions are enabled.
Differential Revision: https://phab.mercurial-scm.org/D5480
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Mon, 24 Dec 2018 15:57:54 +0300 |
parents | 8eaf693b1409 |
children | b05eb98a6b67 |
comparison
equal
deleted
inserted
replaced
41148:8eaf693b1409 | 41149:76dcf7958c5f |
---|---|
63 narrowhg-experimental | 63 narrowhg-experimental |
64 revlogv1 | 64 revlogv1 |
65 sparserevlog | 65 sparserevlog |
66 store | 66 store |
67 treemanifest (tree !) | 67 treemanifest (tree !) |
68 | |
69 $ hg debugrebuilddirstate | |
70 ** unknown exception encountered, please report by visiting | |
71 ** https://mercurial-scm.org/wiki/BugTracker | |
72 ** Python 2.7.12 (default, Nov 12 2018, 14:36:49) [GCC 5.4.0 20160609] | |
73 ** Mercurial Distributed SCM (version 4.8.1+588-479a5ea51ccc+20181224) | |
74 ** Extensions loaded: narrow, sparse | |
75 Traceback (most recent call last): | |
76 File "/place/vartmp/hgtests.zMelCK/install/bin/hg", line 43, in <module> | |
77 dispatch.run() | |
78 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 99, in run | |
79 status = dispatch(req) | |
80 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 225, in dispatch | |
81 ret = _runcatch(req) or 0 | |
82 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 376, in _runcatch | |
83 return _callcatch(ui, _runcatchfunc) | |
84 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 384, in _callcatch | |
85 return scmutil.callcatch(ui, func) | |
86 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/scmutil.py", line 166, in callcatch | |
87 return func() | |
88 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 367, in _runcatchfunc | |
89 return _dispatch(req) | |
90 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 1021, in _dispatch | |
91 cmdpats, cmdoptions) | |
92 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 756, in runcommand | |
93 ret = _runcommand(ui, options, cmd, d) | |
94 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 1030, in _runcommand | |
95 return cmdfunc() | |
96 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/dispatch.py", line 1018, in <lambda> | |
97 d = lambda: util.checksignature(func)(ui, *args, **strcmdopt) | |
98 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/util.py", line 1670, in check | |
99 return func(*args, **kwargs) | |
100 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/debugcommands.py", line 1998, in debugrebuilddirstate | |
101 dirstate.rebuild(ctx.node(), ctx.manifest(), changedfiles) | |
102 File "/place/vartmp/hgtests.zMelCK/install/lib/python/hgext/narrow/narrowdirstate.py", line 60, in rebuild | |
103 super(narrowdirstate, self).rebuild(parent, allfiles, changedfiles) | |
104 File "/place/vartmp/hgtests.zMelCK/install/lib/python/mercurial/extensions.py", line 437, in closure | |
105 return func(*(args + a), **kw) | |
106 File "/place/vartmp/hgtests.zMelCK/install/lib/python/hgext/sparse.py", line 213, in _rebuild | |
107 allfiles = allfiles.matches(matcher) | |
108 AttributeError: 'list' object has no attribute 'matches' | |
109 [1] |