Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 4896:ee04732fe61d
merge with crew-stable
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Tue, 17 Jul 2007 09:28:01 -0300 |
parents | 2d545b98a7bc be5dc5e3ab2d |
children | 6fd953d5faea 8535c1770dd3 |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Jul 17 08:22:43 2007 +0200 +++ b/mercurial/commands.py Tue Jul 17 09:28:01 2007 -0300 @@ -1993,7 +1993,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: