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

Re: setting tsvn:logminsize from command line

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Thu, 24 Oct 2013 18:14:34 +0100

On 24 October 2013 18:04, Andy Levy <andy.levy_at_gmail.com> wrote:

> On Thu, Oct 24, 2013 at 12:56 PM, Simon Large
> <simon.tortoisesvn_at_gmail.com> wrote:
> > On 24 October 2013 17:43, Andy Levy <andy.levy_at_gmail.com> wrote:
> >>
> >> On Thu, Oct 24, 2013 at 12:37 PM, Simon Large
> >> <simon.tortoisesvn_at_gmail.com> wrote:
> >> > On 24 October 2013 16:36, Per Nilsson <per.nilsson_at_enics.com> wrote:
> >> >>
> >> >> Hello
> >> >>
> >> >> I am trying to set the tsvn:logminsize property for one repository.
> The
> >> >> svn propset only excepts setting the property on a Working Copy.
> >> >>
> >> >> But, from the TortoiseSVN Respository Browser it is possible to right
> >> >> click on the repository and add the property.
> >> >>
> >> >> What dowes the Repository Browser do as a trick to get the property
> >> >> into
> >> >> the repository? Does it check out, propset and committ, all in one
> >> >> operation?
> >> >>
> >> >> If so is the case, what would the proper way be to do the same from
> the
> >> >> command line
> >> >
> >> >
> >> > Does svn propedit do what you want?
> >>
> >> svn propset/propdel/propedit requires a working copy to edit versioned
> >> properties.
> >>
> >> C:\>svn propset svn:ignore "*.docx" URL_TO_REPO_ROOT
> >> svn: E200009: Targets must be working copy paths
> >>
> >> I think Per is asking how the repo-browser can edit properties without
> >> having a (visible) WC to perform those edits in.
> >>
> >
> > svn propedit --help says that it will operate directly on a URL.
>
> You're right for propedit, I jumped the gun there.
>
> But if the property isn't already set for the URL (as in Per's case -
> he's trying to set a new property), you need a WC for propset.
>
>
C:\Temp>svn propedit --editor-cmd=notepad.exe -m "Added a property"
svn:ignore file:///c:/temp/repos/my_dir
Set new value for property 'svn:ignore' on 'file:///C:/temp/repos/my_dir'

Committed revision 10.

Obviously you don't want notepad.exe there, but maybe you can use a script
instead. On my test repository there was no pre-existing property called
svn:ignore so it works for setting them too.

Simon

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3066998

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-10-24 19:14:42 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.