cat: use ctx.manifestnode() in place of ctx._changeset[0]
authorYuya Nishihara <yuya@tcha.org>
Sat, 11 Apr 2015 16:01:42 +0900
changeset 24718 a4191e0c728f
parent 24717 90f2b9de30f2
child 24719 11e8fec00234
cat: use ctx.manifestnode() in place of ctx._changeset[0]
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