diff -r 90f2b9de30f2 -r a4191e0c728f mercurial/cmdutil.py --- a/mercurial/cmdutil.py Fri Apr 10 23:34:06 2015 -0400 +++ b/mercurial/cmdutil.py Sat Apr 11 16:01:42 2015 +0900 @@ -2402,7 +2402,7 @@ if len(matcher.files()) == 1 and not matcher.anypats(): file = matcher.files()[0] mf = repo.manifest - mfnode = ctx._changeset[0] + mfnode = ctx.manifestnode() if mf.find(mfnode, file)[0]: write(file) return 0