--- a/mercurial/commands.py Wed Sep 14 12:22:20 2005 -0500
+++ b/mercurial/commands.py Wed Sep 14 12:35:10 2005 -0500
@@ -579,8 +579,11 @@
change = repo.changelog.read(n)
m = repo.manifest.read(change[0])
n = m[relpath(repo, [file1])[0]]
- except hg.RepoError, KeyError:
- n = r.lookup(rev)
+ except (hg.RepoError, KeyError):
+ try:
+ n = r.lookup(rev)
+ except KeyError, inst:
+ raise util.Abort('cannot find file %s in rev %s', file1, rev)
else:
n = r.tip()
fp = make_file(repo, r, opts['output'], node=n)