Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 639:31cebba881a0
Add addchangegroup to the ssh protocol
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 06 Jul 2005 22:23:57 -0800 |
parents | 35f7adfefa69 |
children | b48b91d3fb4a |
comparison
equal
deleted
inserted
replaced
638:35f7adfefa69 | 639:31cebba881a0 |
---|---|
920 d = cg.read(4096) | 920 d = cg.read(4096) |
921 if not d: break | 921 if not d: break |
922 fout.write(d) | 922 fout.write(d) |
923 | 923 |
924 out.flush() | 924 out.flush() |
925 | |
926 elif cmd == "addchangegroup": | |
927 if not lock: | |
928 respond("not locked") | |
929 continue | |
930 respond("") | |
931 | |
932 r = repo.addchangegroup(fin) | |
933 respond("") | |
925 | 934 |
926 def openlog(opt, default): | 935 def openlog(opt, default): |
927 if opts[opt] and opts[opt] != '-': return open(opts[opt], 'w') | 936 if opts[opt] and opts[opt] != '-': return open(opts[opt], 'w') |
928 else: return default | 937 else: return default |
929 | 938 |