diff -r 931f901ab811 -r be5dc5e3ab2d mercurial/commands.py --- a/mercurial/commands.py Sun Jul 15 14:43:38 2007 -0500 +++ b/mercurial/commands.py Tue Jul 17 09:08:29 2007 -0300 @@ -1978,7 +1978,10 @@ """ rev = opts.get('rev') if file_: - ctx = repo.filectx(file_, changeid=rev) + files, match, anypats = cmdutil.matchpats(repo, (file_,), opts) + if anypats or len(files) != 1: + raise util.Abort(_('can only specify an explicit file name')) + ctx = repo.filectx(files[0], changeid=rev) elif rev: ctx = repo.changectx(rev) else: