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

'svn status' reporting file not found when pathname contains an intermediate symlink

From: Brent Webster <webster.brent_at_rogers.com>
Date: Tue, 26 Jan 2016 07:55:48 -0800 (PST)

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
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3157165
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2016-01-26 16:59:38 CET

This is an archived mail posted to the TortoiseSVN Users mailing list.

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