equal
deleted
inserted
replaced
943 virtual = "" |
943 virtual = "" |
944 |
944 |
945 virtual = virtual.strip('/') |
945 virtual = virtual.strip('/') |
946 |
946 |
947 if len(virtual): |
947 if len(virtual): |
948 try: |
948 if self.cp.has_option("paths", virtual): |
949 real = self.cp.get("paths", virtual) |
949 real = self.cp.get("paths", virtual) |
950 h = hgweb(real) |
950 h = hgweb(real) |
951 h.run() |
951 h.run() |
952 return |
952 return |
953 except: |
953 else: |
954 httpnotfound(virtual) |
954 httpnotfound(virtual) |
955 return |
955 return |
956 |
956 |
957 def header(**map): |
957 def header(**map): |
958 yield tmpl("header", **map) |
958 yield tmpl("header", **map) |