From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: "Eric S. Raymond" <esr@thyrsus.com>
Cc: emacs-devel@gnu.org
Subject: Re: master 2a81c5d 1/2: Confine vc-stay-local to CVS, because it was unusable in SVN.
Date: Mon, 01 Dec 2014 18:13:27 +0100 [thread overview]
Message-ID: <m37fybwax4.fsf@stories.gnus.org> (raw)
In-Reply-To: <20141201165837.GA22988@thyrsus.com> (Eric S. Raymond's message of "Mon, 1 Dec 2014 11:58:38 -0500")
"Eric S. Raymond" <esr@thyrsus.com> writes:
> Lars Magne Ingebrigtsen <larsi@gnus.org>:
>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>>
>> > When trying to check in from vc mode, I get the backtrace below. Since
>> > this is git, I'm not quite sure why it's querying bzr...
>>
>> I seem to be getting this backtrace whenever I save or open a file.
>> Here's an example:
>
> I think I know why. Very strange that it's not reproducing here. I'll
> push an attempted fix momentarily.
edebugging this, the problem is here:
(when (re-search-forward
;; bzr prints paths relative to the repository root.
(concat "^\\(" vc-bzr-state-words "\\):[ \t\n]+"
(regexp-quote (vc-bzr-file-name-relative file))
where that function can return nil:
(defun vc-bzr-file-name-relative (filename)
"Return file name FILENAME stripped of the initial Bzr repository path."
(let* ((filename* (expand-file-name filename))
(rootdir (vc-bzr-root filename*)))
(when rootdir
(file-relative-name filename* rootdir))))
And regexp-quote on nil doesn't work very well.
I don't know why this function is called at all, though. Could it be
some local customisation I have that affects this? I'll try with emacs -Q.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
prev parent reply other threads:[~2014-12-01 17:13 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20141201154813.24050.49985@vcs.savannah.gnu.org>
[not found] ` <E1XvTCw-0006H0-B7@vcs.savannah.gnu.org>
2014-12-01 16:47 ` master 2a81c5d 1/2: Confine vc-stay-local to CVS, because it was unusable in SVN Lars Magne Ingebrigtsen
2014-12-01 16:52 ` Lars Magne Ingebrigtsen
2014-12-01 16:58 ` Eric S. Raymond
2014-12-01 17:09 ` Eric S. Raymond
2014-12-01 17:27 ` Lars Magne Ingebrigtsen
2014-12-01 17:53 ` Lars Magne Ingebrigtsen
2014-12-01 18:20 ` Eric S. Raymond
2014-12-01 18:27 ` Lars Magne Ingebrigtsen
2014-12-01 18:45 ` Eric S. Raymond
2014-12-01 18:51 ` Glenn Morris
2014-12-01 18:56 ` Lars Magne Ingebrigtsen
2014-12-01 19:18 ` Eric S. Raymond
2014-12-01 19:21 ` Lars Magne Ingebrigtsen
2014-12-01 19:28 ` Lars Magne Ingebrigtsen
2014-12-01 19:31 ` Lars Magne Ingebrigtsen
2014-12-01 19:36 ` Lars Magne Ingebrigtsen
2014-12-01 19:47 ` Eric S. Raymond
2014-12-01 17:13 ` Lars Magne Ingebrigtsen [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m37fybwax4.fsf@stories.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.org \
--cc=esr@thyrsus.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.