summaryrefslogtreecommitdiffstats
path: root/remote.py
diff options
context:
space:
mode:
authorShawn O. Pearce <sop@google.com>2009-05-19 14:58:02 -0700
committerShawn O. Pearce <sop@google.com>2009-05-29 09:31:28 -0700
commitd1f70d9929ddd2748ccc9c1dd2f9603068e1f3e6 (patch)
tree746fa0d1ace702f114357d1798bc67eddd1b79a9 /remote.py
parentc8a300f6397dad7db00c3654ff6e50e9519ed7c9 (diff)
downloadgit-repo-d1f70d9929ddd2748ccc9c1dd2f9603068e1f3e6.tar.gz
Refactor how projects parse remotes so it can be replaced
We now feed Project a RemoteSpec, instead of the Remote directly from the XmlManifest. This way the RemoteSpec already has the full project URL, rather than just the base, permitting other types of manifests to produce the URL in their own style. Signed-off-by: Shawn O. Pearce <sop@google.com>
Diffstat (limited to 'remote.py')
-rw-r--r--remote.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/remote.py b/remote.py
deleted file mode 100644
index bb8f740c..00000000
--- a/remote.py
+++ /dev/null
@@ -1,22 +0,0 @@
1#
2# Copyright (C) 2008 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16class Remote(object):
17 def __init__(self, name,
18 fetch=None,
19 review=None):
20 self.name = name
21 self.fetchUrl = fetch
22 self.reviewUrl = review