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): |