# Re: Call svn up from a command line app?

From: Duncan Murdoch <subversion_at_murdoch-sutherland.com>
Date: 2005-12-05 02:37:43 CET

On 12/4/2005 7:51 PM, Bryan D. Andrews wrote:
> I can't simulate this behavior from a commandline... should I be able
> to?
>
> I have tried:
>
>
>>C:\builds\repos\svn up
>
>
> This does not work.

I think you need to read up on command line tools and shells. What that
says is to take the svn executable from the directory C:\builds\repos\,
and use it to update the current directory (whatever that is).

You might want

svn up c:\builds\repos

but the name makes me really suspicious: is that a working copy, or the
repository itself? You don't update the repository, you update working
copies.

>
> If we use the SVN Revert command on an existing checked out directory,
> would this be faster than a full checkout?

>
> This is for an automated build solution...

svn revert

is a destructive command, which should probably never be used in an
automated build. It might make sense to use svn checkout in an
automated build, but usually you'd just use svn update.

So I really have no idea what you're attempting to do.

Duncan Murdoch

>
> -----Original Message-----
> From: Duncan Murdoch [mailto:subversion@murdoch-sutherland.com]
> Sent: Sunday, December 04, 2005 6:23 PM
> To: Bryan D. Andrews
> Cc: users@subversion.tigris.org
> Subject: Re: Call svn up from a command line app?
>
> On 12/4/2005 5:40 PM, Bryan D. Andrews wrote:
>
>>I am trying to call SVN UP from within nant on windows. How are you
>>supposed to specify the directory you are working in? I must be
>
> missing
>
>>something here...
>
>
> This sounds like a question to ask the nant list. Windows knows a
> current directory; get nant to set that, and Subversion will use it.
>
> Or don't: if you fully specify the directory, SVN UP will be fine.
>
> Duncan Murdoch
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org