Open Bug 1456998 Opened 6 years ago Updated 6 years ago

Replication of repositories with hidden changesets results in inconsistent mirrors

Categories

(Developer Services :: Mercurial: hg.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

ASSIGNED

People

(Reporter: gps, Assigned: sheehan)

References

(Blocks 1 open bug)

Details

We currently have a problem when doing an initial replication `hg replicatesync` of a repository containing hidden changesets.

The replicated repository filters out the hidden changesets. This is arguably OK: if a changeset is hidden it doesn't need to be replicated.

However, this results in hgweb mirrors having mismatches between revision numbers. This is also arguably OK. But it is a bit wonky: consistency would be nice.

The bigger problem is that the pushlog indexes revisions by revision number. And since revision numbers don't align due to missing hidden changesets, pushlog replication effectively ceases at the first pushlog entry referencing a hidden changeset. I believe this is bug 1127512.

We should probably change `hg replicatesync` to include hidden changesets in the set of revisions being replicated. We already have a hack that allows hgweb SSH sessions to pull down hidden changesets via the wire protocol. So this may "just work."
Assignee: nobody → sheehan
Status: NEW → ASSIGNED
See Also: → 1127512
Blocks: hgwebaws
You need to log in before you can comment on or make changes to this bug.