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

Question on info -r committed for file externals

From: Dan Ellis <danellis10_at_gmail.com>
Date: Fri, 10 Jun 2016 16:50:06 -0700

Hi,

I've noticed some differing behavior when using file externals and svn info
-r committed. I'm not sure what the expected behavior should be... hoping
to see what the masses think. I'm running svn 1.8.13 on Windows 7.

When I first create a file external and perform an update, the "svn info -r
committed foo.c" provides a response. After an additional update, with no
changes to the working copy (or repo), the "svn info -r committed foo.c"
gives an error of 'foo.c' has no committed revision. It appears the update
which adds the external creates a different state then the updating of an
already file external. I'm fine with the behavior, but curious about about
why and perhaps there could be other latent issues.

Thanks,
Dan

Here's a simple batch file to reproduce:

svnadmin create c:\project_files\test_repo
svn checkout file:///c:/project_files/test_repo c:\project_files\test_wc
cd c:\project_files\test_wc
echo test > foo.c
svn add foo.c
svn commit foo.c -m "test commit"
svn update
svn ps svn:externals "foo_external.c
file:///c:/project_files/test_repo/foo.c" .
svn update
svn info -r committed foo_external.c
rem This works
svn update
svn info -r committed foo_external.c
rem This does not

And a snippet of the output....

c:\Project_files\test_wc>svn ps svn:externals "foo_external.c
file:///c:/project_files/test_repo/foo.c" .
property 'svn:externals' set on '.'

***** First update does the add and appears to allow an info request *****
c:\Project_files\test_wc>svn update
Updating '.':

Fetching external item into 'foo_external.c':
A foo_external.c
Updated external to revision 1.

At revision 1.

c:\Project_files\test_wc>svn info -r committed foo_external.c
Path: foo.c
Name: foo.c
URL: file:///C:/project_files/test_repo/foo.c
Relative URL: ^/foo.c
Repository Root: file:///C:/project_files/test_repo
Repository UUID: e30464d6-ebeb-3146-b634-d99b5dbdd120
Revision: 1
Node Kind: file
Last Changed Author: me
Last Changed Rev: 1
Last Changed Date: 2016-06-10 15:31:27 -0700 (Fri, 10 Jun 2016)

***** Second update with no changes whatsoever appears to bail *****
c:\Project_files\test_wc>svn update
Updating '.':

Fetching external item into 'foo_external.c':
External at revision 1.

At revision 1.

c:\Project_files\test_wc>svn info -r committed foo_external.c
svn: E195002: Path 'C:\Project_files\test_wc\foo_external.c' has no
committed revision
Received on 2016-06-11 01:50:18 CEST

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

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