comparison silvermirror/hg.py @ 24:183cee927d8b

STUB: silvermirror/hg.py
author Jeff Hammel <k0scist@gmail.com>
date Thu, 30 Jan 2014 20:31:03 -0800
parents f8edfc9c28ba
children cedf9a0e3d61
comparison
equal deleted inserted replaced
23:4f1e45a8656c 24:183cee927d8b
32 commands.clone(_ui, repo, pull=False, uncompressed=False, rev=None, noupdate=False) 32 commands.clone(_ui, repo, pull=False, uncompressed=False, rev=None, noupdate=False)
33 return 33 return
34 34
35 commands.pull(_ui, repo, url, rev=None, force=False, update=True) 35 commands.pull(_ui, repo, url, rev=None, force=False, update=True)
36 36
37 # TODO:
37 # def repositories(path): 38 # def repositories(path):
38 # """ 39 # """
39 # return all hg repositories in a path 40 # return all hg repositories in a path
40 # """ 41 # """
41 42
56 """ 57 """
57 returns the list of repositories under a URL of an hg server 58 returns the list of repositories under a URL of an hg server
58 """ 59 """
59 element = lxml.html.parse(url) 60 element = lxml.html.parse(url)
60 tds = element.xpath('//tr[position() > 1]/td[1]') 61 tds = element.xpath('//tr[position() > 1]/td[1]')
61 repos = [ i.text_content() for i in tds ] 62 repos = [i.text_content() for i in tds]
62 return repos 63 return repos
63 64
64 65
65 def main(args=sys.argv[1:]): 66 def main(args=sys.argv[1:]):
66 parser = OptionParser() 67 parser = OptionParser()