GNU bug report logs -
#8170
vc-dir choking on new bzr status output
Previous Next
Reported by: Juanma Barranquero <lekktu <at> gmail.com>
Date: Fri, 4 Mar 2011 01:26:02 UTC
Severity: normal
Fixed in version 24.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8170 in the body.
You can then email your comments to 8170 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8170
; Package
emacs
.
(Fri, 04 Mar 2011 01:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juanma Barranquero <lekktu <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 04 Mar 2011 01:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From Bazaar 2.3.0 on, bzr status shows a summary of the shelves:
C:\emacs\trunk\> bzr status
modified:
lisp/ChangeLog
lisp/image-dired.el
1 shelf exists. See "bzr shelve --list" for details.
which vc-dir does not understand:
Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
ewoc-data(nil)
vc-dir-node-directory(nil)
vc-dir-update((("../elf exists. See \"bzr shelve --list\" for
details." nil) ("ChangeLog" edited) ("image-dired.el" edited))
#<buffer *vc-dir*>)
#[(G102203 entries &optional more-to-come) "r Jq\210\306 J\"\210\n?\205'
This happens in 23.3RC and 24.0.50.
Juanma
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8170
; Package
emacs
.
(Fri, 04 Mar 2011 05:29:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 8170 <at> debbugs.gnu.org (full text, mbox):
Try this:
*** lisp/vc/vc-bzr.el 2011-03-03 06:25:21 +0000
--- lisp/vc/vc-bzr.el 2011-03-04 05:26:35 +0000
***************
*** 879,884 ****
--- 879,887 ----
(result nil))
(goto-char (point-min))
(while (not (eobp))
+ ;; Bzr 2.3.0 added this if there are shelves. (Bug#8170)
+ (if (looking-at "[1-9]+ shel\\(f\\|ves\\) exist\\.")
+ (forward-line)
(setq status-str
(buffer-substring-no-properties (point) (+ (point) 3)))
(setq translated (cdr (assoc status-str translation)))
***************
*** 910,916 ****
(+ (point) 4)
(line-end-position)) relative-dir)
translated) result)))
! (forward-line))
(funcall update-function result)))
(defun vc-bzr-dir-status (dir update-function)
--- 913,919 ----
(+ (point) 4)
(line-end-position)) relative-dir)
translated) result)))
! (forward-line)))
(funcall update-function result)))
(defun vc-bzr-dir-status (dir update-function)
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8170
; Package
emacs
.
(Fri, 04 Mar 2011 05:47:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 8170 <at> debbugs.gnu.org (full text, mbox):
Correction:
*** lisp/vc/vc-bzr.el 2011-03-03 06:25:21 +0000
--- lisp/vc/vc-bzr.el 2011-03-04 05:46:43 +0000
***************
*** 879,884 ****
--- 879,886 ----
(result nil))
(goto-char (point-min))
(while (not (eobp))
+ ;; Bzr 2.3.0 added this if there are shelves. (Bug#8170)
+ (unless (looking-at "[1-9]+ shel\\(f\\|ves\\) exists?\\.")
(setq status-str
(buffer-substring-no-properties (point) (+ (point) 3)))
(setq translated (cdr (assoc status-str translation)))
***************
*** 909,915 ****
(buffer-substring-no-properties
(+ (point) 4)
(line-end-position)) relative-dir)
! translated) result)))
(forward-line))
(funcall update-function result)))
--- 911,917 ----
(buffer-substring-no-properties
(+ (point) 4)
(line-end-position)) relative-dir)
! translated) result))))
(forward-line))
(funcall update-function result)))
Information forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#8170
; Package
emacs
.
(Fri, 04 Mar 2011 12:40:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 8170 <at> debbugs.gnu.org (full text, mbox):
> Correction:
Yes, it fixes the bug.
> + ;; Bzr 2.3.0 added this if there are shelves. (Bug#8170)
> + (unless (looking-at "[1-9]+ shel\\(f\\|ves\\) exists?\\.")
I tested with `looking-at-p', BTW.
Thanks,
Juanma
bug marked as fixed in version 24.1, send any further explanations to
8170 <at> debbugs.gnu.org and Juanma Barranquero <lekktu <at> gmail.com>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Fri, 04 Mar 2011 19:27:01 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 02 Apr 2011 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.