unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* vc-log bug?
@ 2009-12-14 15:29 Giorgos Keramidas
  2009-12-14 16:05 ` Dan Nicolaescu
  0 siblings, 1 reply; 4+ messages in thread
From: Giorgos Keramidas @ 2009-12-14 15:29 UTC (permalink / raw)
  To: emacs-devel

Some of the recent VC changes broke vc-log for Mercurial here.  My HOME
directory now has less than 2000 changesets:

  changeset:   789:943233c01bf5
  tag:         tip
  user:        Giorgos Keramidas <keramida@ceid.upatras.gr>
  date:        Mon Dec 14 08:49:03 2009 +0200
  summary:     agenda: update clock/time table for today's work

but when I type `C-x v l' the latest VC code tries to see the log of
changes 2000:tip.  Since there is no revision numbered 2000 vc stops
with a backtrace of:

: Debugger entered--Lisp error: (error "Running hg log -r2000:
: AGENDA...FAILED (status 255)")
:   signal(error ("Running hg log -r2000: AGENDA...FAILED (status 255)"))
:   error("Running %s...FAILED (%s)" "hg log -r2000: AGENDA" "status 255")
:   vc-do-command("*vc-change-log*" 0 "hg" ("/home/keramida/AGENDA") "log"  "-r2000:")
:   apply(vc-do-command "*vc-change-log*" 0 "hg" ("/home/keramida/AGENDA") ("log" "-r2000:"))
:   vc-hg-command("*vc-change-log*" 0 ("/home/keramida/AGENDA") "log" "-r2000:")
:   apply(vc-hg-command "*vc-change-log*" 0 ("/home/keramida/AGENDA") "log" "-r2000:")
:   vc-hg-print-log(("/home/keramida/AGENDA") "*vc-change-log*" nil nil 2000)
:   apply(vc-hg-print-log (("/home/keramida/AGENDA") "*vc-change-log*" nil nil 2000))
:   vc-call-backend(Hg print-log ("/home/keramida/AGENDA") "*vc-change-log*" nil nil 2000)
:   vc-print-log-internal(Hg ("/home/keramida/AGENDA") "789" nil 2000)
:   vc-print-log(nil 2000)
:   call-interactively(vc-print-log nil nil)

Is there any way to tweak the limit automatically to, say, half of the
revisions in the current repository?





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: vc-log bug?
  2009-12-14 15:29 vc-log bug? Giorgos Keramidas
@ 2009-12-14 16:05 ` Dan Nicolaescu
  2009-12-14 16:52   ` Giorgos Keramidas
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Nicolaescu @ 2009-12-14 16:05 UTC (permalink / raw)
  To: Giorgos Keramidas; +Cc: emacs-devel

Giorgos Keramidas <keramida@ceid.upatras.gr> writes:

  > Some of the recent VC changes broke vc-log for Mercurial here.  My HOME
  > directory now has less than 2000 changesets:
  > 
  >   changeset:   789:943233c01bf5
  >   tag:         tip
  >   user:        Giorgos Keramidas <keramida@ceid.upatras.gr>
  >   date:        Mon Dec 14 08:49:03 2009 +0200
  >   summary:     agenda: update clock/time table for today's work
  > 
  > but when I type `C-x v l' the latest VC code tries to see the log of
  > changes 2000:tip.

Thanks.  This is a bug in vc-hg.el.  Fixed like this:

--- vc-hg.el.~1.108.~  2009-12-07 00:53:20.000000000 -0800
+++ vc-hg.el           2009-12-14 07:56:11.000000000 -0800
@@ -223,7 +223,7 @@ If nil, use the value of `vc-diff-switch
                  (repeat :tag "Argument List" :value ("") string))
   :group 'vc-hg)
 
-(defun vc-hg-print-log (files buffer &optional shortlog limit start-revision)
+(defun vc-hg-print-log (files buffer &optional shortlog start-revision limit)
   "Get change log associated with FILES."
   ;; `vc-do-command' creates the buffer, but we need it before running
   ;; the command.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: vc-log bug?
  2009-12-14 16:05 ` Dan Nicolaescu
@ 2009-12-14 16:52   ` Giorgos Keramidas
  2009-12-14 16:54     ` Giorgos Keramidas
  0 siblings, 1 reply; 4+ messages in thread
From: Giorgos Keramidas @ 2009-12-14 16:52 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

On Mon, 14 Dec 2009 08:05:06 -0800 (PST), Dan Nicolaescu <dann@ics.uci.edu> wrote:
> Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
>
>   > Some of the recent VC changes broke vc-log for Mercurial here.  My HOME
>   > directory now has less than 2000 changesets:
>   >
>   >   changeset:   789:943233c01bf5
>   >   tag:         tip
>   >   user:        Giorgos Keramidas <keramida@ceid.upatras.gr>
>   >   date:        Mon Dec 14 08:49:03 2009 +0200
>   >   summary:     agenda: update clock/time table for today's work
>   >
>   > but when I type `C-x v l' the latest VC code tries to see the log of
>   > changes 2000:tip.
>
> Thanks.  This is a bug in vc-hg.el.  Fixed like this:
>
> --- vc-hg.el.~1.108.~  2009-12-07 00:53:20.000000000 -0800
> +++ vc-hg.el           2009-12-14 07:56:11.000000000 -0800
> @@ -223,7 +223,7 @@ If nil, use the value of `vc-diff-switch
>                   (repeat :tag "Argument List" :value ("") string))
>    :group 'vc-hg)
>
> -(defun vc-hg-print-log (files buffer &optional shortlog limit start-revision)
> +(defun vc-hg-print-log (files buffer &optional shortlog start-revision limit)
>    "Get change log associated with FILES."
>    ;; `vc-do-command' creates the buffer, but we need it before running
>    ;; the command.

Excellent!  I'll rebuild with this patch and let you know :)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: vc-log bug?
  2009-12-14 16:52   ` Giorgos Keramidas
@ 2009-12-14 16:54     ` Giorgos Keramidas
  0 siblings, 0 replies; 4+ messages in thread
From: Giorgos Keramidas @ 2009-12-14 16:54 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

On Mon, 14 Dec 2009 18:52:51 +0200, Giorgos Keramidas <keramida@ceid.upatras.gr> wrote:
>On Mon, 14 Dec 2009 08:05:06 -0800 (PST), Dan Nicolaescu <dann@ics.uci.edu> wrote:
>>Giorgos Keramidas <keramida@ceid.upatras.gr> writes:
>>> Some of the recent VC changes broke vc-log for Mercurial here.  My HOME
>>> directory now has less than 2000 changesets:
>>>
>>>   changeset:   789:943233c01bf5
>>>   tag:         tip
>>>   user:        Giorgos Keramidas <keramida@ceid.upatras.gr>
>>>   date:        Mon Dec 14 08:49:03 2009 +0200
>>>   summary:     agenda: update clock/time table for today's work
>>>
>>> but when I type `C-x v l' the latest VC code tries to see the log of
>>> changes 2000:tip.
>>
>> Thanks.  This is a bug in vc-hg.el.  Fixed like this:
>>
>> --- vc-hg.el.~1.108.~  2009-12-07 00:53:20.000000000 -0800
>> +++ vc-hg.el           2009-12-14 07:56:11.000000000 -0800
>> @@ -223,7 +223,7 @@ If nil, use the value of `vc-diff-switch
>>                   (repeat :tag "Argument List" :value ("") string))
>>    :group 'vc-hg)
>>
>> -(defun vc-hg-print-log (files buffer &optional shortlog limit start-revision)
>> +(defun vc-hg-print-log (files buffer &optional shortlog start-revision limit)
>>    "Get change log associated with FILES."
>>    ;; `vc-do-command' creates the buffer, but we need it before running
>>    ;; the command.
>
> Excellent!  I'll rebuild with this patch and let you know :)

Fixed, indeed.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-14 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 15:29 vc-log bug? Giorgos Keramidas
2009-12-14 16:05 ` Dan Nicolaescu
2009-12-14 16:52   ` Giorgos Keramidas
2009-12-14 16:54     ` Giorgos Keramidas

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).