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

Update doesn't fetch new files in 1.6.1

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 23 Apr 2009 22:08:32 +0200

Hi,

With an 1.6.1 client, there's a situation where new files aren't fetched
in an update. At least on Windows, can't test on Linux.

Attached a script to reproduce the problem.

This happens when adding a new folder with --depth=empty, which is what
TSVN uses to avoid that files which the user doesn't want to add get
added automatically too. See the comments in the script.

also, the added folder which isn't updated correctly shows that is still
has depth infinity, so that doesn't appear to be the problem.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1881609

::@echo off
set ROOT=D:\Development\SVN\SVNTests
set REPOROOT=D:/Development/SVN/SVNTests
set REPONAME=adddepthrepo
set WCNAME=adddepthwc
set REPO=file:///D:/Development/SVN/SVNTests/adddepthrepo
set WC=%ROOT%\%WCNAME%

::set SVNCLI=D:\Development\SVN\TortoiseSVN\bin\debug\bin\svn.exe
::set SVNADM=D:\Development\SVN\TortoiseSVN\bin\debug\bin\svnadmin.exe
set SVNCLI=svn.exe
set SVNADM=svnadmin.exe

cd %ROOT%
if exist %REPONAME% rd /s /q %REPONAME%
if exist %WCNAME% rd /s /q %WCNAME%
if exist %WCNAME% rd /s /q %WCNAME%2

mkdir %ROOT%\%REPONAME%
svnadmin create %ROOT%\%REPONAME%

::echo [general]> %SERVERROOT%\%REPONAME%\conf\svnserve.conf
::echo anon-access = write>> %SERVERROOT%\%REPONAME%\conf\svnserve.conf
rem Launch svnserve for current directory at port 40000
::start svnserve.exe --daemon --foreground --root %SERVERROOT%\%REPONAME% --listen-port 40000 --listen-host localhost

mkdir %WCNAME%
cd %WCNAME%

%SVNCLI% import . %REPO% -m "importing project"
cd ..
rmdir /s /q %WCNAME%

%SVNCLI% co %REPO% %WC%
%SVNCLI% co %REPO% %WC%2

:: Creating the folder on WC1
mkdir %WCNAME%\folder
echo test > %WCNAME%\folder\file2.txt
echo test > %WCNAME%\folder\tmp.txt
:: add folder with empty depth since we only want the folder, not the temp file in it!
%SVNCLI% add %WCNAME%\folder --depth=empty
%SVNCLI% add %WCNAME%\folder\file2.txt --depth=empty
%SVNCLI% ci %WCNAME% -m "adding folder"

:: Update WC2
%SVNCLI% up %WCNAME%2

:: Create files on WC2, adding and commit
echo test > %WCNAME%2\folder\file.txt
echo test > %WCNAME%2\folder\tmp.txt

%SVNCLI% add %WCNAME%2\folder\file.txt --depth=empty
%SVNCLI% ci %WCNAME%2 -m "adding file"

:: Update WC1
%SVNCLI% up %WCNAME%
:: now I'd expect that folder\file.txt is added, but it isn't!

Received on 2009-04-23 22:08:57 CEST

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

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