Mercurial > hg-stable
changeset 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 | 90f2b9de30f2 |
children | 11e8fec00234 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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