Mercurial > hg-stable
comparison tests/test-grep.t @ 37447:067e8d1178a2
workingctx: build _manifest on filenode() or flags() request
I'm not sure if this is the best workaround, but this fixes the following
exception:
AttributeError: 'workingctx' object has no attribute '_manifestdelta'
The short hash '303030303030' seen in the test is node.modifiednodeid.
Differential Revision: https://phab.mercurial-scm.org/D2940
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 25 Mar 2018 18:27:43 +0900 |
parents | a2a6755a3def |
children | a0d71618074f |
comparison
equal
deleted
inserted
replaced
37446:d46d4f14300a | 37447:067e8d1178a2 |
---|---|
234 port:0:1:+:spam:import | 234 port:0:1:+:spam:import |
235 | 235 |
236 $ hg up -q null | 236 $ hg up -q null |
237 $ hg grep -f port | 237 $ hg grep -f port |
238 [1] | 238 [1] |
239 | |
240 Test wdir | |
241 (at least, this shouldn't crash) | |
242 | |
243 $ hg up -q | |
244 $ echo wport >> port2 | |
245 $ hg stat | |
246 M port2 | |
247 $ hg grep -r 'wdir()' port | |
248 abort: data/port2.i@303030303030: no node! | |
249 [255] | |
239 | 250 |
240 $ cd .. | 251 $ cd .. |
241 $ hg init t2 | 252 $ hg init t2 |
242 $ cd t2 | 253 $ cd t2 |
243 $ hg grep foobar foo | 254 $ hg grep foobar foo |