GNU bug report logs - #24082
25.1; vc-dir for CVS repositories list all files as if from toplevel directory

Previous Next

Package: emacs;

Reported by: Göktuğ Kayaalp <self <at> gkayaalp.com>

Date: Tue, 26 Jul 2016 21:08:01 UTC

Severity: normal

Tags: confirmed

Found in version 25.1

Done: Dmitry Gutov <dgutov <at> yandex.ru>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Steve Revilak <steve <at> srevilak.net>
To: 24082 <at> debbugs.gnu.org
Subject: bug#24082: vc-dir changes working directory (git backend)
Date: Fri, 29 Jul 2016 20:35:21 -0400
[Message part 1 (text/plain, inline)]
I'd like to submit some additional information.  I seem similar (but
not identical behavior) when git is used as the vc backend.

I am using emacs version

  GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.15) of 2016-07-29

I've attached a small shell script to assist in reproducing the
behavior.  The script creates a git repository and commits two files
./my-repo/file1.txt and ./my-repo/file2.txt.  The script also creates
(an unregistered) file ./my-repo/new-file.txt.

STEPS TO REPRODUCE:

 sh mk-repository.sh
 emacs -Q
 C-x f my-repo/subdir RET
 C-x v d

At this point emacs prompts "VC status for directory: ~/my-repo",
although the buffer's working directory was "~/my-repo/subdir".

I press RET at the "VC status for directory: ~/my-repo".  Here's what
I see

---------------------------------
VC backend : Git
Working dir: ~/my-repo/
Branch     : master
Remote     : 
Stash      : Nothing stashed

                         ./
     unregistered        new-file.txt
---------------------------------

When performing these steps with emacs-24.5:

 - After pressing C-x v d, emacs prompts
   "VC status for directory: ~/my-repo/subdir/"

 - I press RET and see

---------------------------------
VC backend : Git
Working dir: ~/my-repo/subdir/
Branch     : master
Remote     : 
Stash      : Nothing stashed

                         ./
---------------------------------

I agree with the reporter: the VC status is being reported from the
top-level of the repository, as opposed to the buffer's working
directory.

emacs-25.0.90 behaves the same way as emacs 25.1-rc1

Unlike the CVS report, '=' (in vc-dir) behaves as I would expect: it
shows me a diff of the file at point.

[mk-repository.sh (application/x-sh, attachment)]
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 8 years and 293 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.