Mercurial > public > mercurial-scm > hg-stable
diff mercurial/cmdutil.py @ 24720:c560d8c68791
cat: disable optimization of single file case for workingctx
It crashes because workingctx has no manifest.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 05 Apr 2015 13:16:46 +0900 |
parents | a4191e0c728f |
children | edf907bd8144 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Thu Apr 09 22:18:55 2015 +0900 +++ b/mercurial/cmdutil.py Sun Apr 05 13:16:46 2015 +0900 @@ -2403,7 +2403,7 @@ file = matcher.files()[0] mf = repo.manifest mfnode = ctx.manifestnode() - if mf.find(mfnode, file)[0]: + if mfnode and mf.find(mfnode, file)[0]: write(file) return 0