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

Re: Shortcut to update WC without path?

From: Nathan Hartman <hartman.nathan_at_gmail.com>
Date: Thu, 14 May 2020 22:00:50 -0400

On Thu, May 14, 2020 at 1:15 PM Tom N <nospam_at_codesniffer.com> wrote:

> I'm looking for a shortcut to update the entire SVN WC without specifying
> the (relative or absolute) path to the root of the WC, assuming the PWD is
> in the WC.
> I was hoping "svn up ^" would work but doesn't seem to (at least not as of
> 1.9.7. I know I can make this work with "svn info" and some scripting, is
> there a built-in way?
>
> Thanks!
>
Hi Tom,

Luckily, SVN 1.9 added the --show-item=xxx option to the svn info command
[1].

Assuming you're on a *nix shell, this should do what you want:

$ svn up `svn info --show-item=wc-root`

(At least, it does with 1.13. I don't have a 1.9 build handy at the moment.)

Hope that helps!

[1] https://subversion.apache.org/docs/release-notes/1.9.html#svn-info-item

Cheers,
Nathan
Received on 2020-05-15 04:01:34 CEST

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

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