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

Re: Tsvn update does not always fetch HEAD after commit

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 09 Mar 2015 20:59:28 +0100

On 08.03.2015 15:05, Oddvar Kloster wrote:
>>> As mentioned, I have a setup where I work against a svnsync'ed mirror
>> repo with writethrough to the master. In this environment, a branch/tag
>> operation often fails if either of the options 'switch working copy to new
>> branch/tag' or 'set explicit version for externals' is enabled. The branch/tag
>> creation itself completes successfully, but the followup switch/property
>> operation depends on the new branch/tag being present on the mirror,
>> which may not be the case if svnsync is not quick enough.
>>> Is it possible to have tsvn make sure that the committed revision is visible
>> before performing additional operations?
>>
>> I think in this situation, your setup is slightly wrong. I assume you use hook
>> scripts on the server to trigger the svnsync command: that command must
>> not run asynchronously but the hook script has to wait until that svnsync is
>> finished.
>> Of course, then you might get timeout errors if the svnsync takes too long...
>>
>
> I've looked around for guidelines on whether to invoke svnsync synchronously or asynchronously, and almost every example I've found uses asynchronous invocation, including these:
>
> http://blogs.collab.net/subversion/yesterday-at-th
> http://svnbook.red-bean.com/en/1.8/svn.serverconfig.httpd.html#svn.serverconfig.httpd.extra.writethruproxy
>
> The discussions I've seen take asynchronous invocation for granted and focus on the details of how to do it. So even if the setup might be wrong, it seems to be the most common one. I think having tsvn wait in these situations would be of help to many users.

Well, in 1.9 the feature to set the externals to explicit revisions is
done at the same time as the copy/commit/...
So at least for that you won't get that problem anymore.

As for the switch after the copy, I'll have to find a way that won't
slow down the operation for all those who don't use write-through proxying.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3104162
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-03-09 20:59:18 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.