From: Dmitry Gutov <dgutov@yandex.ru>
To: Glenn Hutchings <zondo42@gmail.com>
Cc: 22032@debbugs.gnu.org
Subject: bug#22032: 24.3; VC doesn't handle hg hidden revisions
Date: Tue, 15 Dec 2015 16:08:21 +0200 [thread overview]
Message-ID: <56701ED5.5010008@yandex.ru> (raw)
In-Reply-To: <CA+hLqocwRQqXHZj1i8YOQiJS2c1nL7ahVP7OrdS=oizy=ct1XQ@mail.gmail.com>
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)))))
?
next prev parent reply other threads:[~2015-12-15 14:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-27 11:36 bug#22032: 24.3; VC doesn't handle hg hidden revisions Glenn Hutchings
2015-11-28 2:44 ` Dmitry Gutov
[not found] ` <5659C34E.4070300@gmail.com>
2015-11-28 18:09 ` Dmitry Gutov
2015-12-13 10:54 ` Glenn Hutchings
2015-12-14 3:30 ` Dmitry Gutov
[not found] ` <CA+hLqocwRQqXHZj1i8YOQiJS2c1nL7ahVP7OrdS=oizy=ct1XQ@mail.gmail.com>
2015-12-15 14:08 ` Dmitry Gutov [this message]
2015-12-15 23:53 ` Andy Moreton
2015-12-16 0:03 ` Dmitry Gutov
2015-12-16 3:02 ` Andy Moreton
2015-12-18 5:02 ` Dmitry Gutov
2015-12-22 20:17 ` Glenn Hutchings
2015-12-22 21:33 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56701ED5.5010008@yandex.ru \
--to=dgutov@yandex.ru \
--cc=22032@debbugs.gnu.org \
--cc=zondo42@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).