GNU bug report logs -
#13826
Bug#701711: emacs24: svn support fails in a symlinked directory
Previous Next
Reported by: Rob Browning <rlb <at> defaultvalue.org>
Date: Wed, 27 Feb 2013 01:42:02 UTC
Severity: normal
Tags: moreinfo, unreproducible
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13826 in the body.
You can then email your comments to 13826 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13826
; Package
emacs
.
(Wed, 27 Feb 2013 01:42:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Rob Browning <rlb <at> defaultvalue.org>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 27 Feb 2013 01:42:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
(If possible, please preserve the 701711-forwarded address in any replies.)
Juha Jäykkä <juhaj <at> iki.fi> writes:
> Version: 24.2+1-2
> vc-update and other vc-*-commands fail to detect an svn controlled
> directory when the directory is a symlink to an svn controlled
> directory.
>
> The new SVN working copy directory tree only has .svn directory at
> the topmost level and it seems emacs does 'chdir("..")' or something
> equivalent when it tries to find the .svn directory. However, if
> directory A is a symlink to an svn working copy directory B, then
> looking at A/.. is not the right place to look for .svn; instead,
> emacs should note that A is a symlink, readlink() and look at B/..
> instead.
Further details can be found here:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=701711
Thanks
--
Rob Browning
rlb @defaultvalue.org and @debian.org
GPG as of 2011-07-10 E6A9 DA3C C9FD 1FF8 C676 D2C4 C0F0 39E9 ED1B 597A
GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13826
; Package
emacs
.
(Wed, 27 Feb 2013 08:27:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 13826 <at> debbugs.gnu.org (full text, mbox):
>> vc-update and other vc-*-commands fail to detect an svn controlled
>> directory when the directory is a symlink to an svn controlled
>> directory.
Works fine for me. Please give a complete recipe starting from emacs -Q.
Here's mine, using svn 1.7.8. I assume you are talking about
subdirectories, otherwise it makes no sense.
cd /tmp
svnadmin create repo
mkdir -p proj/sub/dir
cd proj
touch 1 sub/2 sub/dir/3
svn import . file:///tmp/repo/proj/trunk -m 'import'
cd ../
rm -rf proj
svn checkout file:///tmp/repo/proj/trunk proj
svn checkout file:///tmp/repo/proj/trunk proj2
cd proj2
echo foo >> sub/dir/3
svn commit -m "change" sub/dir/3
cd ../
ln -s proj/sub/dir
emacs-24.2 -Q dir/3 & # visit file via linked directory
"Followed link to /tmp/proj/sub/dir/3" appears in echo-area.
SVN-1 appears in mode-line.
M-x vc-update
-> file is updated with "foo"
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13826
; Package
emacs
.
(Wed, 27 Feb 2013 23:13:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 13826 <at> debbugs.gnu.org (full text, mbox):
> >> vc-update and other vc-*-commands fail to detect an svn controlled
> >> directory when the directory is a symlink to an svn controlled
> >> directory.
>
> Works fine for me. Please give a complete recipe starting from emacs -Q.
I'm sorry for the false alarm. I still think there is a bug, but not the one I
reported.
This works
emacs -Q /path/to/symlink-directory/file
where /path/to/symlink-directory points to an SVN controlled directory.
However, if the variable vc-cvs-stay-local is set to nil in .emacs, then the
emacs fails to notice that symlink-directory is SVN controlled.
Now, this may or may not be intended, but I believe it is a bug nevertheless.
If it is not intended, there's the bug. If it is intended, then the
documentation for vc-cvs-stay-local (not to mention the name of the variable
implying that it affects CVS repositories only, but the documentation makes it
clear this is not the case) is wrong:
Non-nil means use local operations when possible for remote repositories.
This avoids slow queries over the network and instead uses heuristics
and past information to determine the current status of a file.
If value is the symbol `only-file' `vc-dir' will connect to the
server, but heuristics will be used to determine the status for
all other VC operations.
The value can also be a regular expression or list of regular
expressions to match against the host name of a repository; then VC
only stays local for hosts that match it. Alternatively, the value
can be a list of regular expressions where the first element is the
symbol `except'; then VC always stays local except for hosts matched
by these regular expressions.
Cheers,
Juha
--
-----------------------------------------------
| Juha Jäykkä, juhaj <at> iki.fi |
| http://koti.kapsi.fi/~juhaj/ |
-----------------------------------------------
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13826
; Package
emacs
.
(Thu, 28 Feb 2013 07:51:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 13826 <at> debbugs.gnu.org (full text, mbox):
Juha Jäykkä wrote:
> However, if the variable vc-cvs-stay-local is set to nil in .emacs, then the
> emacs fails to notice that symlink-directory is SVN controlled.
It makes no difference for me whether I set vc-cvs-stay-local,
vc-svn-stay-local, or vc-stay-local to nil or t. The recipe I posted
still works fine. Do you have a recipe starting from emacs -Q that shows
the problem?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13826
; Package
emacs
.
(Wed, 05 Feb 2014 23:53:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 13826 <at> debbugs.gnu.org (full text, mbox):
Glenn Morris <rgm <at> gnu.org> writes:
> Juha Jäykkä wrote:
>
>> However, if the variable vc-cvs-stay-local is set to nil in .emacs, then the
>> emacs fails to notice that symlink-directory is SVN controlled.
>
> It makes no difference for me whether I set vc-cvs-stay-local,
> vc-svn-stay-local, or vc-stay-local to nil or t. The recipe I posted
> still works fine. Do you have a recipe starting from emacs -Q that shows
> the problem?
More information was requested almost a year ago, but no further
progress seems to have been made. I'm closing this bug report now, but
if this problem still persists, please reopen it.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
bug closed, send any further explanations to
13826 <at> debbugs.gnu.org and Rob Browning <rlb <at> defaultvalue.org>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Wed, 05 Feb 2014 23:53:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 06 Mar 2014 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 106 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.