[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

1.6.3 BUG: svn info fails if path to working copy is a symlink

From: Jari Aalto <jari.aalto_at_cante.net>
Date: Wed, 12 Aug 2009 16:21:31 +0300

[Forwarded to gmane.comp.version-control.subversion.devel]

Would someone in the devel list comment if it's okay to Open Bug at
http://subversion.tigris.org/

Jari

-----------------------------------------------------------------------

The problems still exists in 1.6.3:

    [Debian/testing, using /bin/bash]

    $ svn --version | grep ' vers'
    svn, version 1.6.3 (r38063)

    $ svnadmin create test.repo

    $ svn co file://$(pwd)/test.repo test.svn
    Checked out revision 0.

    $ ln -s test.svn test.symlink

    $ svn info test.svn
    Path: test.svn
    URL: file:///root/tmp/test/test.repo
    Repository Root: file:///root/tmp/test/test.repo
    Repository UUID: efbca93f-0eea-403d-984b-c6e9a2d3e895
    Revision: 0
    Node Kind: directory
    Schedule: normal
    Last Changed Rev: 0
    Last Changed Date: 2009-08-12 16:12:41 +0300 (Wed, 12 Aug 2009)

    $ svn info test.symlink
    svn: '.' is not a working copy

    $ svn info test.symlink/
    svn: '.' is not a working copy

    $ svn info $(readlink test.symlink)
    Path: test.svn
    URL: file:///root/tmp/test/test.repo
    Repository Root: file:///root/tmp/test/test.repo
    Repository UUID: efbca93f-0eea-403d-984b-c6e9a2d3e895
    Revision: 0
    Node Kind: directory
    Schedule: normal
    Last Changed Rev: 0
    Last Changed Date: 2009-08-12 16:12:41 +0300 (Wed, 12 Aug 2009)

-----------------------------------------------------------------------
Cf. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=519332

Package: subversion
Version: 1.5.6dfsg-1
Severity: normal

Hi,

svn info (and eventually other commands, too) fail if the path to the
working copy given as parameter is a symlink:

$ svnadmin create svn
$ svn co file://`pwd`/svn wc
Checked out revision 0.
$ ln -s wc symlink
$ svn info wc
Path: wc
URL: ...
$ svn info symlink
svn: '.' is not a working copy
svn: Can't open file '.svn/entries': No such file or directory
$ svn info symlink/
svn: '.' is not a working copy
svn: Can't open file '.svn/entries': No such file or directory
$ svn info `readlink -f symlink`
Path: /tmp/wc
URL: ...

Andreas

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable'), (300, 'unstable'), (130, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages subversion depends on:
ii libapr1 1.3.3-3 The Apache Portable Runtime Librar
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libsasl2-2 2.1.22.dfsg1-23 Cyrus SASL - authentication abstra
ii libsvn1 1.5.6dfsg-1 Shared libraries used by Subversio

subversion recommends no packages.

Versions of packages subversion suggests:
pn db4.6-util <none> (no description available)
ii patch 2.5.9-5 Apply a diff file to an original
ii subversion-tools 1.5.6dfsg-1 Assorted tools related to Subversi

-- no debconf information

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2382893
Received on 2009-08-12 16:54:27 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.