Closed Bug 1127549 Opened 10 years ago Closed 6 years ago

[pushes] pushes.utils._hg_repository_sync should be more resilient to 400 response for too many heads

Categories

(Webtools Graveyard :: Elmo, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: Pike, Unassigned)

References

Details

In _hg_repository_sync, we're making sure our local clone has all changesets in the push data we're handling. We're currently just kicking of a plain old hg pull, but that's getting 400 responses if there are too many heads, see bug 927219. It'd be nice if we could just pull a particular revision, like the last one. That works for the most part, unless there's a single push on multiple branches. gps did one just the other day, so despite the fact that that's rare, it happens. I wonder if the cleanest way is to iterate backwards through the revisions in the push, and if they don't resolve in the local clone, to pull that revision. That should result in just one pull in the generic case, but would handle the case of multi-branch pushes, too.
This is arguably a bug in Mercurial. See bug 1030239.
Depends on: 1030239
This is a server configuration issue. It should get fixed soonish.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
I had to reopen the server bug, and given how my next week looks, let's get this at least on a branch and use it in prod.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Resolving this, we didn't hit this for a long time, and the patch doesn't apply no more, either.
Status: REOPENED → RESOLVED
Closed: 10 years ago6 years ago
Resolution: --- → INCOMPLETE
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.