Closed Bug 1427311 Opened 7 years ago Closed 7 years ago

Autoland should return the full SHA1 of commits

Categories

(Conduit :: Transplant, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: glob)

References

Details

Attachments

(3 files)

Assignee: nobody → glob
mozreview is echoing the sha provided by autoland, which currently truncates to 12 chars.
Component: Review Board: User Interface → Autoland
Summary: MozReview's links to Treeherder should use the full 40 character revision SHA → Autoland should return the full SHA1 of commits
Comment on attachment 8940594 [details] autoland: return full length commit SHAs (bug 1427311) https://reviewboard.mozilla.org/r/210804/#review216806 ::: autoland/hgext/rewritecommitdescriptions.py:44 (Diff revision 1) > def rewrite_commit_descriptions(ui, repo, base_node, descriptions=None): > > - def sha1_of(node): > + def sha1_short(node): > return repo[node].hex()[:12] > > + def sha1_full(node, full=False): `full` is unused here. Maybe it is used in a subsequent commit?
Attachment #8940594 - Flags: review?(gps) → review+
Attachment #8940595 - Flags: review?(gps) → review+
Comment on attachment 8940596 [details] autoland: fix missing return value in PatchTransplant.apply_changes (bug 1427311) https://reviewboard.mozilla.org/r/210808/#review216810 ::: autoland/autoland/transplant.py:326 (Diff revision 1) > > # Apply the patch, with file rename detection (similarity). > # Using 95 as the similarity to match automv's default. > logger.info(self.run_hg(['import', '-s', '95', temp_file.name])) > > + return self.run_hg(['log', '-r', 'tip', '-T', '{node}']) I think this should use rev `.` instead of `tip`. I believe this because `.` is the active revision whereas `tip` is the most recently-committed revision. While they should be the same, `.` seems to be safer.
Attachment #8940596 - Flags: review?(gps) → review+
Pushed by bjones@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/e80afa52502d autoland: return full length commit SHAs r=gps https://hg.mozilla.org/hgcustom/version-control-tools/rev/b5c384c32ffe autoland: fix autoland tests r=gps https://hg.mozilla.org/hgcustom/version-control-tools/rev/c65b7133ec9d autoland: fix missing return value in PatchTransplant.apply_changes r=gps
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Many thanks Byron :-)
The changes here don't appear to be in production - do you know when the next deploy will be taking place?
hrm, it's already deployed. i must have missed something - sorry about that; reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Depends on: 1434919
will fix in bug 1434919
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Product: MozReview → Conduit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: