]> git.eshelyaron.com Git - emacs.git/commit
Extract last source package release from local VCS data
authorPhilip Kaludercic <philipk@posteo.net>
Sun, 30 Oct 2022 10:43:11 +0000 (11:43 +0100)
committerPhilip Kaludercic <philipk@posteo.net>
Sun, 30 Oct 2022 13:04:52 +0000 (14:04 +0100)
commit30f1e7c1e93dda496412f76f70b2f49b30407b11
tree5bce30c759267dcfadf26215ef187e65d76ebfe8
parenta52cec7b6b89785ee5321ed67d096db7ce42ce9c
Extract last source package release from local VCS data

* lisp/emacs-lisp/package-vc.el (package-vc-archive-spec-alist):
Unmention :release-rev
(package-vc-desc->spec): Fall back on other archives if a
specification is missing.
(package-vc-main-file): Add new function, copying the behaviour of
elpa-admin.el.
(package-vc-generate-description-file): Use 'package-vc-main-file'.
(package-vc-unpack): Handle special value ':last-release'.
(package-vc-release-rev): Add new function using 'last-change'.
(package-vc-install): Pass ':last-release' as REV instead of a
release.
* lisp/vc/vc-git.el (vc-git-last-change): Add Git 'last-change'
implementation.
* lisp/vc/vc.el (vc-default-last-change): Add default 'last-change'
implementation.

This attempts to replicate the behaviour of elpa-admin.el's
"elpaa--get-last-release-commit".
lisp/emacs-lisp/package-vc.el
lisp/vc/vc-git.el
lisp/vc/vc.el