##// END OF EJS Templates
ui: fix crash in `hg paths` when pulled-delta-reuse-policy is in use...
Arseniy Alekseyev -
r51584:ba602ddc stable
parent child Browse files
Show More
@@ -5219,7 +5219,7 b' def paths(ui, repo, search=None, **opts)'
5219 value = b'yes'
5219 value = b'yes'
5220 else:
5220 else:
5221 value = b'no'
5221 value = b'no'
5222 fm.condwrite(showsubopts, subopt, b'%s\n', value)
5222 fm.condwrite(showsubopts, subopt, b'%s\n', pycompat.bytestr(value))
5223
5223
5224 fm.end()
5224 fm.end()
5225
5225
@@ -178,15 +178,9 b' pull with "forced" policy'
178 -------------------------
178 -------------------------
179
179
180 $ cp -R client client-forced
180 $ cp -R client client-forced
181 $ hg -R client-forced paths --config paths.default:pulled-delta-reuse-policy=forced 2>&1 | "$PYTHON" $TESTDIR/filtertraceback.py
181 $ hg -R client-forced paths --config paths.default:pulled-delta-reuse-policy=forced
182 default = $TESTTMP/server
182 default = $TESTTMP/server
183 default:pulled-delta-reuse-policy = ** unknown exception encountered, please report by visiting
183 default:pulled-delta-reuse-policy = 2
184 ** https://mercurial-scm.org/wiki/BugTracker
185 ** Python * (glob)
186 ** Mercurial Distributed SCM (*) (glob)
187 ** Extensions loaded:
188 Traceback (most recent call last):
189 TypeError: %b requires a bytes-like object, or an object that implements __bytes__, not 'int'
190 $ hg -R client-forced pull --config paths.default:pulled-delta-reuse-policy=forced
184 $ hg -R client-forced pull --config paths.default:pulled-delta-reuse-policy=forced
191 pulling from $TESTTMP/server
185 pulling from $TESTTMP/server
192 requesting all changes
186 requesting all changes
General Comments 0
You need to be logged in to leave comments. Login now