From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.bugs Subject: bug#24082: vc-dir changes working directory (git backend) Date: Fri, 29 Jul 2016 20:35:21 -0400 Message-ID: <20160730003521.GA17700@srevilak.net> References: <874m7crwv4.fsf@xi.bootis> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4SFOXa2GPu3tIq4H" X-Trace: ger.gmane.org 1469838992 17232 80.91.229.3 (30 Jul 2016 00:36:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jul 2016 00:36:32 +0000 (UTC) To: 24082@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 30 02:36:21 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bTIGK-0004u9-DV for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Jul 2016 02:36:20 +0200 Original-Received: from localhost ([::1]:33722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTIGE-0006vj-71 for geb-bug-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 20:36:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTIG6-0006tx-DM for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 20:36:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bTIG2-0006Nz-9P for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 20:36:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bTIG2-0006Nu-62 for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 20:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bTIG1-0001dR-Vc for bug-gnu-emacs@gnu.org; Fri, 29 Jul 2016 20:36:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <874m7crwv4.fsf@xi.bootis> Resent-From: Steve Revilak Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Jul 2016 00:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24082 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 24082-submit@debbugs.gnu.org id=B24082.14698389336250 (code B ref 24082); Sat, 30 Jul 2016 00:36:01 +0000 Original-Received: (at 24082) by debbugs.gnu.org; 30 Jul 2016 00:35:33 +0000 Original-Received: from localhost ([127.0.0.1]:51018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTIFY-0001cj-SS for submit@debbugs.gnu.org; Fri, 29 Jul 2016 20:35:33 -0400 Original-Received: from paulo.mayfirst.org ([162.247.75.145]:47320) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bTIFY-0001cc-0T for 24082@debbugs.gnu.org; Fri, 29 Jul 2016 20:35:32 -0400 Original-Received: from paulo.mayfirst.org (unknown [127.0.0.1]) by paulo.mayfirst.org (Postfix) with ESMTP id D39B13F1E for <24082@debbugs.gnu.org>; Fri, 29 Jul 2016 20:35:26 -0400 (EDT) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: srevilak@paulo.mayfirst.org) with ESMTPSA id 9454F3F1D Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:121700 Archived-At: --4SFOXa2GPu3tIq4H Content-Type: multipart/mixed; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline --jRHKVT23PllUwdXP Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 201= 6-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 =2E/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 :=20 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 :=20 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, '=3D' (in vc-dir) behaves as I would expect: it shows me a diff of the file at point. --jRHKVT23PllUwdXP Content-Type: application/x-sh Content-Disposition: attachment; filename="mk-repository.sh" Content-Transfer-Encoding: quoted-printable #!/bin/sh=0A=0Arepo=3Dmy-repo=0A=0Arm -rf $repo=0Amkdir $repo=0A(cd $repo= =0A git init=0A mkdir subdir=0A date > subdir/file1.txt=0A date > subdir/fi= le2.txt=0A git add subdir=0A git commit -m "initial revision"=0A date > new= -file.txt=0A)=0A --jRHKVT23PllUwdXP-- --4SFOXa2GPu3tIq4H Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXm/ZIAAoJED6yLeTllNzyxqAP/0wSjtsVlNVsvXjFzepsehKZ QqHmZpKd63iGvEroXt+Q0SZoS27J+lwJy+fyFuRKpaRHCtCGlxvpzD9jPSjm1LzI pG8vTusgjuzlvyRm8J/eYdtpZWMoL8lNVU6h/3jpjQ81J5vGUVlXrH20roCmrM62 sTtXRkCh7q6s4Z6Rz4HUjXJWaeCixB44N5o98WVRBW2qzlWsmSQPrW5r9RfJ+9M4 e7m9ZKrfOwxyt5P4oBViMhdUlVYLa81/I3IqfZnWXGASuFnF960Xids4Wkz4Jp1p QQhO3RWCw4CcbhDAVa4EhNWdVWLz+doVwDr6fXAY0gaRN6m51zdJuMNZQwBqwp9Z gdXkrcZi1WZZBF6F33mr8KwM1tyUeeIl9y+V4mQaN+pTUnVQQp/1KvKSDtN7xjHO uBH4nSGb2wtOVBI4UsjJ606luTV25eDlP93+/bsIklECPFVDUI4KO7kHFCi/4pvK fECtXV7whV6j2NdV/fLAl2m+E5qmO5fLqxEOJ/IoXBBvTMi/F5M9orgUKt+1MdM7 vPKY/JFGMbulsN8v9E0zVFXhdx70WB+QYvaiOBnZNmeFlm4XniKxX/OrkBA/kaFe 7LKRufTkrn15Iscnb+R7u1KNfwF4PrMwQl1bTWstmPXI9GpIrrsQ/KGDgpKZ4LNi GfkNfyHjw5hLLq+217hM =utEv -----END PGP SIGNATURE----- --4SFOXa2GPu3tIq4H--