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

Re: Bug: /command:export doesn't do the right thing

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-11-24 17:11:41 CET

Per Bergland wrote:
> Same question as
> http://svn.haxx.se/tsvnusers/archive-2006-05/0036.shtml really:
> I can't get /command:export to work without UI interaction.

Did you read the answer to that question?

> :export Exports the working copy in /path to another directory. If the
> /path points to an unversioned directory, a dialog will ask for an URL
> to export to the dir in /path.
>
> The documentation for "path" states that for commands that take two
> paths, you add a * in between the paths.
>
> D.1.
> ...
> "Since some of the commands can take a list of target paths (e.g.
> committing several specific files) the |/path| parameter can take
> several paths, separated by a |*| character."

That's meant for commands like update, where you can update several
paths at once, or commit.

But it's definitely *not* for commands that need to *different* paths to
work (e.g. source and destination). After all, how would TSVN know which
one of those paths you specified that way should be the source and which
the destination path?

> I can't get this to work for the export command where I want to specify
> a versioned directory to another directory.
>
> Steps to reproduce:
>
> set dest=%userprofile%\Desktop\Target
> set sourceDir="Some svn-connected folder"
> mkdir "%dest%" 2>NUL
> set tortoiseexe=%programfiles%\TortoiseSVN\bin\TortoiseProc.exe
> "%tortoiseexe%" /notempfile /command:export /path:"%sourceDir%*%dest%"

Export does *not* take multiple paths. You can't export into multiple
folders.

> What I expected:
> A clean exported version of everything in "Some svn-connected folder"
> into %userprofile%\Desktop\Target.
>
> What I got:
> A Tortoise "Export" dialog with the "Export" text box set to
> %sourceDir%*%dest% (expanded), i.e in my case
> C:\Proj\MyProject\SomeSamples*C:\Documents and
> Settings\johndoe\Desktop\Target
>
> Hope this can be fixed so I can automate my builds better.

Fixed? Why fixed? It's clearly documented how this works. It doesn't do
anything wrong.

If you only want to export a local working copy and not from an url, you
can use the following command:

"%tortoiseexe%" /notempfile /command:dropexport /droptarget:"%dest%"
/path:"%sourceDir%"

But you will still get an UI (the progress dialog).

If you need more, use the command line client.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Nov 24 17:11:56 2006

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.