# HG changeset patch # User Benoit Boissinot # Date 1153094975 -7200 # Node ID 9bd3d44c32f6fd433561a4fbc1032d804be1bf65 # Parent b24efed24e8f82f914575f9d252c207ac49636b6 fix 'hg cat' broken by 156fb1feab62 diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -932,7 +932,7 @@ def cat(ui, repo, file1, *pats, **opts): %d dirname of file being printed, or '.' if in repo root %p root-relative path name of file being printed """ - ctx = repo.changectx(opts['rev'] or -1) + ctx = repo.changectx(opts['rev'] or "-1") for src, abs, rel, exact in walk(repo, (file1,) + pats, opts, ctx.node()): fp = make_file(repo, opts['output'], ctx.node(), pathname=abs) fp.write(ctx.filectx(abs).data())