On Thu, May 14, 2020 at 1:15 PM Tom N <nos...@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

Reply via email to