hgrepo.py

changeset 151
e24793fae424
parent 146
c17b82b1f573
child 152
1b734faab67a
equal deleted inserted replaced
150:2fd1f6ee05f5 151:e24793fae424
41 raise ValueError ('Unknown repository "%s"' % reponame) 41 raise ValueError ('Unknown repository "%s"' % reponame)
42 42
43 self.name = reponame 43 self.name = reponame
44 self.published = not bool (repoinfo.get_value ('extrarepo', default=False)) 44 self.published = not bool (repoinfo.get_value ('extrarepo', default=False))
45 self.url = repoinfo.get_value ('url') 45 self.url = repoinfo.get_value ('url')
46 self.version = repoinfo.get_value ('version', default='')
46 self.color = int (repoinfo.get_value ('colorcode', default=0)) 47 self.color = int (repoinfo.get_value ('colorcode', default=0))
47 48
48 if not self.url: 49 if not self.url:
49 raise ValueError ('Repository %s has no url!' % reponame) 50 raise ValueError ('Repository %s has no url!' % reponame)
50 51

mercurial