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

RE: Possible bug: TortoiseProc.exe /command:update "skips" updating files after installing Tortoise 1.5

From: Marcus Boström <marcus.bostrom_at_studentum.se>
Date: Mon, 7 Jul 2008 10:10:52 +0200

I think I found the problem. After updating to 1.5, using a relative path as argument to TortoiseProc.exe stopped working.

For me, this stopped working:
C:\inetpub\Studentum>C:\Progra~1\TortoiseSVN\bin\TortoiseProc.exe /command:update /path:"ClassLibrary" /closeonend:3

While this still works:
C:\inetpub\Studentum>C:\Progra~1\TortoiseSVN\bin\TortoiseProc.exe /command:update /path:"C:\inetpub\Studentum\ClassLibrary" /closeonend:3

The reason could maybe be that TortoiseProc.cpp set the current directory to temp-path in line 275 (http://tortoisesvn.tigris.org/svn/tortoisesvn/trunk/src/TortoiseProc/TortoiseProc.cpp):

// Subversion sometimes writes temp files to the current directory!
// Since TSVN doesn't need a specific CWD anyway, we just set it
// to the users temp folder: that way, Subversion is guaranteed to
// have write access to the CWD
{
        TCHAR pathbuf[MAX_PATH];
        GetTempPath(MAX_PATH, pathbuf);
        SetCurrentDirectory(pathbuf);
}

Being able to use a relative path is a nice feature for us since developers usually have their project-files on different drives or in different directories. We can solve the problem for now by adding some logic to the build-script but I think it's a quite easy fix if the above really is the problem.

Best regards
Marcus Boström
CTO & Founder
----------------------------
Studentum AB
Torstenssonsgatan 4, 4tr
114 56 Stockholm
Tel: +46 (0)8 509 106 00
Direct: +46 (0)8 509 106 30
Mobile: +46 (0)70-471 37 22
Fax: +46 (0)8 509 106 99
marcus.bostrom_at_studentum.se

www.studentum.se
www.utbildning.se
www.kurser.se
www.gymnasium.se
www.kyutbildningar.se
www.yrkesutbildningar.se
www.sprakreseguiden.se
www.plugga-utomlands.se
www.distansutbildningar.se
www.mimersbrunn.se
www.studentum.no
Hitta din utbildning!

-----Original Message-----
From: Stefan Küng [mailto:tortoisesvn_at_gmail.com]
Sent: den 4 juli 2008 19:45
To: users_at_tortoisesvn.tigris.org
Subject: Re: Possible bug: TortoiseProc.exe /command:update "skips" updating files after installing Tortoise 1.5

Marcus Boström wrote:
> Hi Stefan & Ron,
>
> Permissions are set to "Everyone - Full control" for all folders,
> subfolders and files that are version controlled. The context-command
> works fine and we have reproduced the same behavior on the second
> machine which we also updated to 1.5. I definitely think we are on the
> right track with investigating permission issues since we needed to
> add the /notempfile to get the script to work with the previous
> version. Is there some way to getting a more detailed error message?

If the update from the context menu works ok, then maybe you pass the path wrong?
Have you tried passing the path in quotes? For example:
TortoiseProc.exe /command:update /path:"c:\myworkingcopy\project"

The /notempfile flag for the 1.4.x version was needed because without that, it assumed that the paths to update were written to a temp text file, so the path you passed with /path:"" was pointing to that text file unless /notempfile was given.

One other thing:
Subversion sometimes tries to create temporary files in the current directory (known as CWD, but usually only used in a command line environment). Maybe it has something to do with the path from where you start TortoiseProc?

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-07-07 10:14:37 CEST

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

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