emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#6968: closed (23.1; vc-hg-next-version fails if a


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#6968: closed (23.1; vc-hg-next-version fails if a custom style is used)
Date: Sat, 01 Dec 2012 02:15:02 +0000

Your message dated Fri, 30 Nov 2012 21:12:15 -0500
with message-id <address@hidden>
and subject line Re: bug#6968: 23.1; vc-hg-next-version fails if a custom style 
is used
has caused the debbugs.gnu.org bug report #6968,
regarding 23.1; vc-hg-next-version fails if a custom style is used
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
6968: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=6968
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 23.1; vc-hg-next-version fails if a custom style is used Date: Wed, 1 Sep 2010 17:08:13 -0400
I've run into a problem with vc-hg-next-version and how it
identifies the maximum valid revision (the tip). Mercurial allows
for a templating of output for some commands, but
vc-hg-next-version identifies the tip using a regular _expression_
that only matches the "default" output style. 

The patch below works by specifying the style explicitly.
Something similar is done for vc-hg-revision-table, where the
template for the log command is specified. FWIW, I took at look
at the other uses of vc-hg-command and didn't see any other cases
where the style seemed relevant. It is possible to work around
the issue by setting vc-hg-global-switches to include "--config
ui.style=default" (not using the --style option).



Thanks,
Kirk


--- /tmp/vc-hg.el       2010-09-01 16:48:56.000000000 -0400
+++ /tmp/vc-hg.fixed.el 2010-09-01 16:50:18.597813591 -0400
@@ -354,7 +354,7 @@
   (let ((newrev (1+ (string-to-number rev)))
         (tip-revision
          (with-temp-buffer
-           (vc-hg-command t 0 nil "tip")
+           (vc-hg-command t 0 nil "tip" "--style=default")
            (goto-char (point-min))
            (re-search-forward "^changeset:[ \t]*\\([0-9]+\\):")
            (string-to-number (match-string-no-properties 1)))))


--- End Message ---
--- Begin Message --- Subject: Re: bug#6968: 23.1; vc-hg-next-version fails if a custom style is used Date: Fri, 30 Nov 2012 21:12:15 -0500 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 24.3

Sorry for the horrendous delay; change applied to trunk. Thanks.

Kirk Kelsey wrote:

> Well, I missed at least one other case where this can be a
> problem. In vc-hg-working-revision, vc-hg-command isn't used.

Looks like this was independently changed in the meantime.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]