Show More
@@ -579,8 +579,11 b' def cat(ui, repo, file1, rev=None, **opt' | |||||
579 | change = repo.changelog.read(n) |
|
579 | change = repo.changelog.read(n) | |
580 | m = repo.manifest.read(change[0]) |
|
580 | m = repo.manifest.read(change[0]) | |
581 | n = m[relpath(repo, [file1])[0]] |
|
581 | n = m[relpath(repo, [file1])[0]] | |
582 | except hg.RepoError, KeyError: |
|
582 | except (hg.RepoError, KeyError): | |
583 | n = r.lookup(rev) |
|
583 | try: | |
|
584 | n = r.lookup(rev) | |||
|
585 | except KeyError, inst: | |||
|
586 | raise util.Abort('cannot find file %s in rev %s', file1, rev) | |||
584 | else: |
|
587 | else: | |
585 | n = r.tip() |
|
588 | n = r.tip() | |
586 | fp = make_file(repo, r, opts['output'], node=n) |
|
589 | fp = make_file(repo, r, opts['output'], node=n) |
General Comments 0
You need to be logged in to leave comments.
Login now