equal
deleted
inserted
replaced
1054 with repo.internal_cnx() as cnx: |
1054 with repo.internal_cnx() as cnx: |
1055 sources = [] |
1055 sources = [] |
1056 if len(args) >= 2: |
1056 if len(args) >= 2: |
1057 for name in args[1:]: |
1057 for name in args[1:]: |
1058 try: |
1058 try: |
1059 source = repo.sources_by_uri[name] |
1059 source = repo.source_by_uri(name) |
1060 except KeyError: |
1060 except ValueError: |
1061 cnx.error('no source named %r' % name) |
1061 cnx.error('no source named %r' % name) |
1062 errors = True |
1062 errors = True |
1063 else: |
1063 else: |
1064 sources.append(source) |
1064 sources.append(source) |
1065 else: |
1065 else: |