On 3/31/2007 6:12 PM, Laszlo Szabo wrote:
> Thanks Matt & Duncan for the replies. Yes I had meant "working copy" when I
> wrote "local repository". Also I know this isn't a tortoiseSVN mailing list
> so won't labor this point but I had in fact tried to move a couple of files
> from one location to another in my working copy, but looks like I ended up
> with the situation described at
> http://www.mind.ilstu.edu/research/robots/iris4/developers/svntutorial/
> ie "When you run an update, only the files already checked out will be
> updated (or deleted, if they were deleted in the repository since you last
> updated) - if new files have been added to the repository, or you if you
> have deleted a file (or renamed a file), you will not get all of the files
> in the current version. Again, only the files already on your hard drive
> will be touched, and they can only be deleted or overwritten with the latest
> version of the file."
>
> Anyway to resolve this issue, I ended up deleting the working copy and
> checking the whole repository out again. I don't know if there's an
> easier/faster way of achieving this?
Yes, just run update on the directory. That web page is wrong.
If you say "svn update *", then the page is correct (because that
updates each file), but if you say "svn update" you'll get the new
additions.
Duncan Murdoch
>
> On 31/03/07, Duncan Murdoch < murdoch@stats.uwo.ca> wrote:
>> On 3/31/2007 12:35 PM, Laszlo Szabo wrote:
>>> 1. What is the standard or best way to refresh one's local repository
>> with
>>> new files/folders that had been added by others to the main repository?
>> The
>>> update command only seems to work with files that already exist locally
>> but
>>> ignores any that have been added by others. It would be a shame and a
>> large
>>> timewaster for large repositories if the only way to do this is to
>>> periodically delete the local repository and checkout everything afresh
>> from
>>> the main one.
>> svn update will normally add new files. I suspect the issue in your
>> case is that you have checked out a subdirectory (e.g. trunk), and the
>> new files were added to a different one (e.g. a branch).
>>> 2.What command(s) can provide a list of all folders/files that are in
>> the
>>> main repository but not in the local one?
>> I don't think there is such a command. You can use "svn ls -R" to list
>> all the files in the repository, but you'll have to filter the list
>> yourself.
>>
>> Duncan Murdoch
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Apr 1 01:02:20 2007