diff options
author | Shawn O. Pearce <sop@google.com> | 2008-11-06 10:25:35 -0800 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2008-11-06 11:23:06 -0800 |
commit | ae6e0949d187c35d79dbc0b21788fdbb2c65bf78 (patch) | |
tree | 7a825c0e8cb24f0df512f62f4e44970026641dda /remote.py | |
parent | 339ba9f6f70b1733f89a5ff89d5f155389a04094 (diff) | |
download | git-repo-ae6e0949d187c35d79dbc0b21788fdbb2c65bf78.tar.gz |
Add <remote project-name="..."> 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 <sop@google.com>
Diffstat (limited to 'remote.py')
-rw-r--r-- | remote.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -14,8 +14,12 @@ | |||
14 | # limitations under the License. | 14 | # limitations under the License. |
15 | 15 | ||
16 | class Remote(object): | 16 | class Remote(object): |
17 | def __init__(self, name, fetch=None, review=None): | 17 | def __init__(self, name, |
18 | fetch=None, | ||
19 | review=None, | ||
20 | projectName=None): | ||
18 | self.name = name | 21 | self.name = name |
19 | self.fetchUrl = fetch | 22 | self.fetchUrl = fetch |
20 | self.reviewUrl = review | 23 | self.reviewUrl = review |
24 | self.projectName = projectName | ||
21 | self.requiredCommits = [] | 25 | self.requiredCommits = [] |