zodsoft / git-repo

Automatically exported from code.google.com/p/git-repo
Apache License 2.0
0 stars 0 forks source link

repo init --mirror should get refs/changes/* too #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported by Shawn Pearce <sop@google.com> on Tue Mar 03 12:26:05 PST 2009
Source: JIRA REPO-16
Affected Version: 1.6.1

repo init --mirror should use refs/*, to fully mirror the remote, instead of
just refs/heads/*.

This may be necessary to support replication of temporary change refs created
by Gerrit (under refs/changes/*).

Original issue reported on code.google.com by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:09

GoogleCodeExporter commented 9 years ago
Comment by Shawn Pearce <sop@google.com> on Tue Mar 17 08:22:03 PDT 2009

I changed my mind.

Replacing refs/changes/* may be a very bad idea.  If the upstream is using
Gerrit, and the mirror repo is replicating into is using Gerrit, the ID spaces
will collide and the mirror will get duplicates, causing errors in Gerrit, or
changes being overwritten.

Gerrit needs to first have a globally unique change assignment algorithm
before we can directly mirror refs/changes/*.

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10

GoogleCodeExporter commented 9 years ago
Update by Shawn Pearce <sop@google.com> on Tue Mar 17 08:22:03 PDT 2009

Original comment by code-rev...@gtempaccount.com on 24 Sep 2009 at 9:10