Commit db5bf661 authored by Georges Racinet's avatar Georges Racinet 🦑

Commit model: short_hgsha

Similarly to `hgsha`, and by contrast with `hpd_short_display_id`,
this is `nil` if the repository isn't Mercurial.

--HG--
branch : heptapod
parent 89edd586c260
......@@ -338,6 +338,10 @@ def hgsha
@raw.hgsha if mercurial?
end
def short_hgsha
self.class.truncate_sha(hgsha, context: repository) if mercurial?
end
def parent_hgid
@raw.parent_hgid if mercurial?
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment