Show More
@@ -605,6 +605,7 b' def getbundle(repo, proto, others):' | |||||
605 | cg = repo.getbundle('serve', **opts) |
|
605 | cg = repo.getbundle('serve', **opts) | |
606 | return streamres(proto.groupchunks(cg)) |
|
606 | return streamres(proto.groupchunks(cg)) | |
607 |
|
607 | |||
|
608 | @wireprotocommand('heads') | |||
608 | def heads(repo, proto): |
|
609 | def heads(repo, proto): | |
609 | h = repo.heads() |
|
610 | h = repo.heads() | |
610 | return encodelist(h) + "\n" |
|
611 | return encodelist(h) + "\n" | |
@@ -790,7 +791,6 b' def unbundle(repo, proto, heads):' | |||||
790 | os.unlink(tempname) |
|
791 | os.unlink(tempname) | |
791 |
|
792 | |||
792 | commands.update({ |
|
793 | commands.update({ | |
793 | 'heads': (heads, ''), |
|
|||
794 | 'hello': (hello, ''), |
|
794 | 'hello': (hello, ''), | |
795 | 'known': (known, 'nodes *'), |
|
795 | 'known': (known, 'nodes *'), | |
796 | 'listkeys': (listkeys, 'namespace'), |
|
796 | 'listkeys': (listkeys, 'namespace'), |
General Comments 0
You need to be logged in to leave comments.
Login now