Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/tests/test-grep.t Fri Apr 06 13:11:40 2018 -0700 +++ b/tests/test-grep.t Sun Mar 25 18:27:43 2018 +0900 @@ -237,6 +237,17 @@ $ hg grep -f port [1] +Test wdir +(at least, this shouldn't crash) + + $ hg up -q + $ echo wport >> port2 + $ hg stat + M port2 + $ hg grep -r 'wdir()' port + abort: data/port2.i@303030303030: no node! + [255] + $ cd .. $ hg init t2 $ cd t2