From: Mike Mattie <codermattie@gmail.com>
To: emacs developers <emacs-devel@gnu.org>
Subject: vc-backend questionable behavior
Date: Wed, 20 Feb 2008 17:46:58 -0800 [thread overview]
Message-ID: <20080220174658.2822d68b@reforged> (raw)
[-- Attachment #1: Type: text/plain, Size: 1012 bytes --]
Hello,
One of my in-development devel tools uses vc. While poking through the API I noticed this
red flag.
The vc-backend function returns a symbol identifying which backend "claims" a given path.
Red Flag:
The correct result for directories is only produced when the path has a trailing slash.
Examples:
here is a path that is the root of a subversion checkout. The evaluation result for each sexp
is shown below.
(vc-backend "/usr/home/mattie/system/emacs/")
SVN
(vc-backend "/usr/home/mattie/system/emacs")
nil
Version:
23.0.60.2 (old unicode branch I believe)
Summary:
I can work-around this, but I figured it was the Right Thing to flag it, as relying on the path
instead of FS calls is a traditional red-flag. It is clearly wrong as well for the second sexp which is
a valid directory path.
Cheers,
Mike Mattie
P.S: at least in my version vc.el there is no version inserted into the head of the file, isn't that odd for
a version control package ?
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2008-02-21 1:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-21 1:46 Mike Mattie [this message]
2008-02-21 1:53 ` vc-backend questionable behavior Miles Bader
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=20080220174658.2822d68b@reforged \
--to=codermattie@gmail.com \
--cc=emacs-devel@gnu.org \
/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).