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

Re: I think I'm in big trouble! (committed changes error)

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Wed, 20 Jan 2010 19:27:39 +0300

Greetings, Ulrich Eckhardt!

>> Let me see if I can clarify this better... my (supposedly one and only)
>> repository is on my desktop at home. I have one (1) working copy, which
>> is on my flash drive. I normally do a commit after making changes when
>> the flash drive is attached to the home desktop.
>>
>> This time, I did a commit before leaving for work while the flash drive
>> was connected to the home desktop. I went to work, made some changes to
>> the working copy, and foolishly did a commit while the flash drive was
>> connected to my laptop. I don't believe there is a repository on the
>> laptop, at least that I knowingly created.

> On your flashdrive is a WC. Inside that WC is (in the .svn dirs) the URL of
> the repository, e.g. "file://C:/home/rolf/svn-repository"
> or "http:///home-desktop.example.local/svn".

> If you now try to commit, SVN creates a connection to the repository using the
> URL. If it's a file path, and it finds the repository there, it will commit
> to the repository, but I don't think that could have happened without error,
> because it is unlikely that at the exact same location on your work machine
> is also a repository that has the exact same content.

More specifically, it's highly unlikely that repository at that location has
the same UUID(!!!!) as the one at original location.
For that, you need to take certain steps to replicate *repository* at laptop.
And it falls into "you're enemy of yourself" category.

> If you commit using an http URL and your home machine is found even though
> you're in a different network, the commit went to the right repository.
> Otherwise you would have gotten an error, too.

Yep.

--
WBR,
 Andrey Repin (anrdaemon_at_freemail.ru) 20.01.2010, <19:24>
Sorry for my terrible english...
Received on 2010-01-20 17:30:43 CET

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