comparison mercurial/commands.py @ 2654:9bd3d44c32f6

fix 'hg cat' broken by 156fb1feab62
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 17 Jul 2006 02:09:35 +0200
parents b24efed24e8f
children ddf404954092
comparison
equal deleted inserted replaced
2653:b24efed24e8f 2654:9bd3d44c32f6
930 930
931 %s basename of file being printed 931 %s basename of file being printed
932 %d dirname of file being printed, or '.' if in repo root 932 %d dirname of file being printed, or '.' if in repo root
933 %p root-relative path name of file being printed 933 %p root-relative path name of file being printed
934 """ 934 """
935 ctx = repo.changectx(opts['rev'] or -1) 935 ctx = repo.changectx(opts['rev'] or "-1")
936 for src, abs, rel, exact in walk(repo, (file1,) + pats, opts, ctx.node()): 936 for src, abs, rel, exact in walk(repo, (file1,) + pats, opts, ctx.node()):
937 fp = make_file(repo, opts['output'], ctx.node(), pathname=abs) 937 fp = make_file(repo, opts['output'], ctx.node(), pathname=abs)
938 fp.write(ctx.filectx(abs).data()) 938 fp.write(ctx.filectx(abs).data())
939 939
940 def clone(ui, source, dest=None, **opts): 940 def clone(ui, source, dest=None, **opts):