Skip to content

Commit

Permalink
[bot] "built_in_updates" Sun Dec 15 20:37:14 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemacsBot committed Dec 15, 2024
1 parent 1979016 commit 979fff6
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions core/libs/package-build.el
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,15 @@ or snapshots are build.")
"--abbrev=12" "--match" tag rev))
(car (process-lines "git" "rev-parse" "--short=12" rev))))

(cl-defmethod package-build--revdesc ((_rcp package-hg-recipe) rev &optional _tag)
rev)
(cl-defmethod package-build--revdesc ((_rcp package-hg-recipe) rev &optional tag)
;; Cannot use "{shortest(node, minlength=12)}" because that results
;; in "hg: parse error: can't use a key-value pair in this context".
(car (process-lines
"hg" "id" "--id" "--rev" rev "--template"
(if tag
(format "{latesttag('%s') %% '{tag}-{distance}-m{short(node)}'}\n"
tag)
"{short(node)}\n"))))

;;;; Tag

Expand Down Expand Up @@ -458,7 +465,7 @@ Return (COMMIT-HASH COMMITTER-DATE VERSION-STRING REVDESC TAG) or nil."
(process-lines "git" "tag" "--list"))

(cl-defmethod package-build--list-tags ((_rcp package-hg-recipe))
(process-lines "hg" "tags" "--quiet"))
(delete "tip" (process-lines "hg" "tags" "--quiet")))

(define-obsolete-function-alias 'package-build-get-tag-version
'package-build-tag-version "Package-Build 5.0.0")
Expand Down

0 comments on commit 979fff6

Please sign in to comment.