Discussion:
'svn ls' not showing the contents of the repository
Anton Shepelev
2017-11-29 17:18:38 UTC
Permalink
Hello, all

Why can 'svn ls' show different results when invoked from
two working copies of the same repository? According to the
documentation is should always list the acutal contents of
the corresponding repository:

The default TARGET is ., meaning the repository URL of the
current working copy directory.

'svn info' from both the working copies returns:

URL: http://sbo-prod1:18080/svn/Sources

so why the outout of 'svn ls' is not the same? In the
working copy that I checked-out later it shows some newly
added directories that it does not "see" from within the
older working copy. When I invoke:

svn ls http://sbo-prod1:18080/svn/Sources

from the older working copy the output is as expected.
--
Please, do not forward replies to the list to my e-mail.
Daniel Shahaf
2017-11-29 17:34:48 UTC
Permalink
Post by Anton Shepelev
Why can 'svn ls' show different results when invoked from
two working copies of the same repository?
Probably because the working copy's BASE revision is different. 'svn ls'
runs 'svn ls ***@BASE' by default. If you pass an explicit revision
you'll get identical output: 'svn ls -r HEAD'.

This could also be caused by authz settings.
Anton Shepelev
2017-11-29 20:02:04 UTC
Permalink
Post by Daniel Shahaf
Post by Anton Shepelev
Why can 'svn ls' show different results when invoked
from two working copies of the same repository?
Probably because the working copy's BASE revision is
Disregarding what is writ in the Book?
Post by Daniel Shahaf
If you pass an explicit revision you'll get identical
output: 'svn ls -r HEAD'.
So I must either commit or update the whole working copy in
order for the new directory to become availble for download
to the workng copy?
Post by Daniel Shahaf
This could also be caused by authz settings.
Impossible.
--
Please, do not forward replies to my e-mail.
Branko Čibej
2017-11-30 02:27:00 UTC
Permalink
Post by Daniel Shahaf
Post by Anton Shepelev
Why can 'svn ls' show different results when invoked from
two working copies of the same repository?
Probably because the working copy's BASE revision is different. 'svn ls'
you'll get identical output: 'svn ls -r HEAD'.
If it's "svn ls URL" then the default revision is HEAD, not BASE.

-- Brane
Lorenz
2017-11-30 06:11:27 UTC
Permalink
Post by Daniel Shahaf
Post by Anton Shepelev
Why can 'svn ls' show different results when invoked from
two working copies of the same repository?
Probably because the working copy's BASE revision is different. 'svn ls'
you'll get identical output: 'svn ls -r HEAD'.
Then perhaps this fact should be mentioned in the BOOK and "svn help
ls".

"The default TARGET is “.”, meaning the repository URL of the current
working copy directory."

vs.

"The default TARGET is “***@BASE”, meaning the repository URL of the
current working copy directory at the time of checkout or last
update."


Lorenz

Loading...