subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Ellis <danelli...@gmail.com>
Subject Question on info -r committed for file externals
Date Fri, 10 Jun 2016 23:50:06 GMT
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

Mime
View raw message