From: Mark Harig via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: 58525@debbugs.gnu.org
Subject: bug#58525: 28.1: `vc-dir' (key sequence: C-x v d) fails when used with a CVS repository
Date: Fri, 14 Oct 2022 17:36:38 +0000 (UTC) [thread overview]
Message-ID: <2011444375.1250404.1665768998367@mail.yahoo.com> (raw)
In-Reply-To: 2011444375.1250404.1665768998367.ref@mail.yahoo.com
When attempting to retrieve a VC status for a directory or file
when the VC backend is CVS, the `vc-dir' command fails with an
error message.
Steps to recreate the problem, using `emacs -Q':
# 1. Create a new CVS repository from a bash shell prompt:
$ cd # Start in home directory.
$ mkdir tmp1
$ cvs -d ~/tmp1 init # Create a new CVS repository in ~/tmp1.
$ CVSROOT=~/tmp1; export CVSROOT
# 2. Create a new project to add to the CVS repository:
$ mkdir tmp2
$ mkdir tmp2/project1
$ cd tmp2/project1
$ touch foo.txt README.txt # Create some empty files.
$ cd .. # Return to tmp2 directory.
# 3. Add project as a module named "project1" to the CVS repository:
$ cvs import -m "Initial versions." . project1 start
N ./foo.txt
N ./README.txt
No conflicts created by this import
# 4. Retrieve the CVS module "project1":
$ cd .. # Return to home directory.
$ ls tmp1 tmp2 # Check directories' contents.
tmp1:
CVSROOT/ project1/
tmp2:
project1/
# 5. Retrieve the new module from the CVS repository:
$ mkdir tmp3
$ cd tmp3
$ cvs checkout project1 project1
U project1/README.txt
U project1/foo.txt
$ ls
project1/
$ ls project1
CVS/ foo.txt README.txt
# 6. Start emacs in directory ~/tmp3/project1:
$ cd project1
$ emacs -Q
7. In Emacs, type `C-x d' (the function `dired') to list the
contents of the initial directory, ~/tmp3/project1. This list
will include the subdirectory `CVS' and the two files
`foo.txt' and `README.txt'.
8. Type `C-x v d' (the function `vc-dir') to list the VC status
for the files in the directory. The following error message
will be written to the *Messages* buffer:
vc-responsible-backend: Wrong type argument: sequencep, t
Mark set
9. Type `C-u C-x v d' (that is, add a prefix argument to `C-x v
d'). The following prompt will be displayed:
VC status for directory: ~/tmp3/project1
At the prompt, accept the command by pressing the <RET> key. The
second prompt will then be displayed:
Use VC backend:
At this prompt, type `CVS' and press <RET> (Note that the capital
letters C V S are required). The command completes successfully
and a *vc-dir* buffer is displayed with the VC backend correctly
identified as CVS.
So, the code for `vc-dir' (or, key sequence C-x v d) contains an
error in which it cannot correctly identify the VC backend if it
is not provided, when the VC backend is CVS.
(End of report.)
next parent reply other threads:[~2022-10-14 17:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <2011444375.1250404.1665768998367.ref@mail.yahoo.com>
2022-10-14 17:36 ` Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2022-10-14 18:34 ` bug#58525: 28.1: `vc-dir' (key sequence: C-x v d) fails when used with a CVS repository Eli Zaretskii
2022-10-16 22:06 ` Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-17 6:06 ` Eli Zaretskii
2022-10-17 13:00 ` Dmitry Gutov
2022-10-17 16:34 ` Eli Zaretskii
2022-10-17 17:43 ` Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-17 23:10 ` Dmitry Gutov
2022-10-18 1:06 ` Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-18 12:04 ` Dmitry Gutov
2022-10-18 15:39 ` Mark Harig via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-10-18 15:58 ` Dmitry Gutov
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=2011444375.1250404.1665768998367@mail.yahoo.com \
--to=bug-gnu-emacs@gnu.org \
--cc=58525@debbugs.gnu.org \
--cc=idirectscm@aim.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 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).