Closed
Bug 1127944
Opened 9 years ago
Closed 9 years ago
Legacy vcs sync assumes hg repository "tip" is the new Git branch head
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gps, Assigned: hwine)
References
Details
Attachments
(1 file)
1.22 KB,
patch
|
hwine
:
checked-in+
|
Details | Diff | Splinter Review |
The work in bug 927219 broke legacy vcs sync because legacy vcs sync assumes the hg repo "tip" commit corresponds to the Git branch that should be pushed. The code is here: https://hg.mozilla.org/users/hwine_mozilla.com/repo-sync-tools/file/d957174f1baf/keep_updated#l46 If the tip-most commit belongs to a different head, legacy vcs sync will attempt a non-fast-forward. The errors currently occurring in legacy vcs sync (see also bug 1127172) are because it is attempting to force push a branch closure commit for a different head to the e.g. v1.4 Git branch. Changing legacy vcs sync to run `hg id -r default` instead of `hg id` (which takes the "tip" commit by default) should be all that is needed to fix this. The assumption here is that every repository we sync has changes coming from the "default" Mercurial branch.
Assignee | ||
Comment 1•9 years ago
|
||
This same issue was detected on the code for most conversion in bug 854437. "Combo" (gecko.git) code was not changed at that time, most likely out of concern of touching seeming working code.
Assignee | ||
Comment 2•9 years ago
|
||
running in production with: http://hg.mozilla.org/users/hwine_mozilla.com/repo-sync-tools/rev/b61ed6d1cfa0
Attachment #8557444 -
Flags: checked-in+
Assignee | ||
Comment 3•9 years ago
|
||
done with comment 2, closing
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•