|
From: | Dmitry Gutov |
Subject: | bug#22032: 24.3; VC doesn't handle hg hidden revisions |
Date: | Tue, 15 Dec 2015 16:08:21 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 |
Please keep the bug address in Cc. On 12/15/2015 07:59 AM, Glenn Hutchings wrote:
Alas, omitting "--hidden" causes Mercurial to give an error when passed a hidden changeset ID.
That's too bad.But if the revision spec allows open intervals though, we could pass the current (non-hidden) revision to it. Maybe something like
(defun vc-hg-previous-revision (_file rev) (with-temp-buffer (vc-hg-command t 0 nil "id" "--hidden" "-n" "-r" (format "second(%s:0 and not hidden())" rev)) ;; Trim the trailing newline. (buffer-substring (point-min) (1- (point-max))))) ?
[Prev in Thread] | Current Thread | [Next in Thread] |