comparison mercurial/hgweb.py @ 753:8760d0c83b9b

Check protocol versions This also allows the old unidentified protocol
author mpm@selenic.com
date Thu, 21 Jul 2005 18:20:13 -0500
parents 0b245edec124
children 0108c602feb9 1fe3b14c7044 9c918287d10b
comparison
equal deleted inserted replaced
752:c693eafd5967 753:8760d0c83b9b
668 nodes = map(bin, args['nodes'][0].split(" ")) 668 nodes = map(bin, args['nodes'][0].split(" "))
669 for b in self.repo.branches(nodes): 669 for b in self.repo.branches(nodes):
670 sys.stdout.write(" ".join(map(hex, b)) + "\n") 670 sys.stdout.write(" ".join(map(hex, b)) + "\n")
671 671
672 elif args['cmd'][0] == 'between': 672 elif args['cmd'][0] == 'between':
673 httphdr("application/hg-0.1") 673 httphdr("application/mercurial-0.1")
674 nodes = [] 674 nodes = []
675 if args.has_key('pairs'): 675 if args.has_key('pairs'):
676 pairs = [ map(bin, p.split("-")) 676 pairs = [ map(bin, p.split("-"))
677 for p in args['pairs'][0].split(" ") ] 677 for p in args['pairs'][0].split(" ") ]
678 for b in self.repo.between(pairs): 678 for b in self.repo.between(pairs):