diff mercurial/cmdutil.py @ 24718:a4191e0c728f

cat: use ctx.manifestnode() in place of ctx._changeset[0]
author Yuya Nishihara <yuya@tcha.org>
date Sat, 11 Apr 2015 16:01:42 +0900
parents ab6e3729747e
children c560d8c68791
line wrap: on
line diff
--- 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