From ae6e0949d187c35d79dbc0b21788fdbb2c65bf78 Mon Sep 17 00:00:00 2001 From: "Shawn O. Pearce" Date: Thu, 6 Nov 2008 10:25:35 -0800 Subject: Add attribute within projects By setting a project-name on a remote nested within a project forks of a project like the Linux kernel can be easily handled by fetching all relevant forks into the same client side project under different remote names. Developers can create branches off different remotes using `git checkout --track -b $myname $remote/$branch` and later `repo upload` automatically redirects to the proper fork project in the code review server. Signed-off-by: Shawn O. Pearce --- remote.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'remote.py') diff --git a/remote.py b/remote.py index 27a8f7a7..3bc30a59 100644 --- a/remote.py +++ b/remote.py @@ -14,8 +14,12 @@ # limitations under the License. class Remote(object): - def __init__(self, name, fetch=None, review=None): + def __init__(self, name, + fetch=None, + review=None, + projectName=None): self.name = name self.fetchUrl = fetch self.reviewUrl = review + self.projectName = projectName self.requiredCommits = [] -- cgit v1.2.3-54-g00ecf