subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Webster, Brent (Coriant - CA/Ottawa)" <Brent.Webs...@coriant.com>
Subject 'svn status' reporting file not found when pathname contains an intermediate symlink
Date Mon, 25 Jan 2016 21:29:31 GMT
I have a script within an absolute directory path: ots/osm1s/Target/sdcard/proj/test.sh
It exists:
  >> ls -I ots/osm1s/Target/sdcard/proj/test.sh
   1376926 ots/osm1s/Target/sdcard/proj/test.sh

   >> svn status ots/osm1s/Target/sdcard/proj/test.sh
   >>
   # i.e. no mods

An intermediate symlink is setup and created in
   >> cd ots/development
   >> ln -s ../osm1s OSM1S

>From a Linux perspective, this link is valid
  >> ls -I ots/development/OSM1S/Target/sdcard/proj/test.sh
   1376926 ots/development/OSM1S/Target/sdcard/proj/test.sh
   # i.e. the inode is the same

It is special:
  >> svn pl ots/development/OSM1S
  Properties on 'ots/development/OSM1S':
     svn:special

but when I query it
   >> svn status ots/development/OSM1S/Target/sdcard/proj/test.sh
   svn: warning: W155010: The node '/svn/xxx/aSymlinkBug/ots/development/OSM1S/Target/sdcard/proj/test.sh'
was not found.

Note: Querying the status at the symlink reports nothing i.e no mods which is correct
  >> svn status ots/development/OSM1S
  >>

But as soon as I go past the symlink, the behaviour is erratic
  >> svn status ots/development/OSM1S/Target
  ?      ots/development/OSM1S/Target
  >> svn status ots/development/OSM1S/Target/sdcard
  svn: warning: W155010: The node '/svn/xxx/aSymlinkBug/ots/development/OSM1S/Target/sdcard'
was not found.

This is not the symlink behaviour that I'm expecting in SVN or should I not be so picky

Environment setup:

-          OS: Red Hat Enterprise Linux Client release 5.9 (Tikanga)

-          svn: 1.8.14

-          binaries installed directly, we didn't build them

-          no private mods

-          no Berkeley DB

Yes, it is an old OS but welcome to big iron/telecom development

The following is my setup:
1/ create a new private branch called aSymlinkBug
   svn mkdir $svnnap/sdevolution/trunk/Sandbox/bwebster/aSymlinkBug

2/ then check it out
   svn co $svnnap/sdevolution/trunk/Sandbox/bwebster/aSymlinkBug

3/ Setup required structure
   >> cd aSymlinkBug
   >> mkdir -p ots/development
   >> mkdir -p ots/osm1s/Target/sdcard/proj
   >> cat <<EOF >ots/osm1s/Target/sdcard/proj/test.sh
   #!/bin/bash
   #
   echo "Just testing"
   @EOF
   >>chmod 755 ots/osm1s/Target/sdcard/proj/test.sh

4/ Now, create the intermeidate symlink
   >> cd ots/development
   >> ln -s ../osm1s OSM1S

5/ Add everything and check it in
   >> cd ../..
   >> svn add ots
   >> svn commit -m "initial bug setup"

----
Brent Webster

Mime
View raw message