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>
This commit is contained in:
parent
339ba9f6f7
commit
ae6e0949d1
4 changed files with 26 additions and 6 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue