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

Minor Feature/Docs Suggestions: Local Version Control Listings

From: Rob Hubbard <hubbard.r_at_gmail.com>
Date: 2007-11-07 10:56:25 CET

Hello,

[Please CC me on replies, as I'm not subscribed to this list. Thanks.]

I tried to list a working copy:
    $ svn ls -v
but I got no reply, as my repository was not available.

However, all I wished to be reminded of is which files I have
committed most recently. This information is known locally.

Therefore, I would like to be able to use
    $ svn list
over a "local" working copy path in addition to a "remote" URL.

The documentation suggests using the shell's list command
    $ ls
but in this case I wish to see "local" information specific to source control.

As it happened, the information I required was available using status instead:
    $ svn st -v | sort -k1.18
so perhaps the documentation should mention this in the details for list.

The information I required was also available, in a more verbose form, using
    $ svn info *

The documentation says:
"The svn list with no arguments defaults to the repository URL of the
current working directory, not the local working copy directory. After
all, if you wanted a listing of your local directory, you could use
just plain ls (or any reasonable non-Unixy equivalent)."

Perhaps something like the following could be added:
"If you require source control information about your local directory,
especially if your repository is not available, you could use svn
status --verbose or svn info *"

Similarly, perhaps the client could make statements along these lines
when a command fails, for example, due to an inaccessible repository,
but where alternative (but limited) functionality is available.

    $ svn ls
    svn: Can't connect to host '<hostname>':
        A connection attempt failed [...]
    svn tip: Consider using 'svn st -v' or 'svn info *'
        until the repository becomes available

I dare say that this final part will provoke argument...

It would be helpful if "local" functionality could be added to svn
list. I think it *is* correct that this command should default to
listing a URL. But, perhaps a switch such as
  --no-repos
could be used to indicate that only information not requiring access
to the repository is desired. As I've admitted, this information is
available by alternative means. But what I want is an ls-style
listing, and so it is natural to reach for "svn ls".

Thanks,
Rob.

Rob Hubbard.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Nov 9 07:05:48 2007

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.