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

Re: Bug in svnadmin setrevprop?

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Thu, 10 Dec 2009 01:50:39 -0500

Jason Malinowski wrote:
> I was trying to set a revprop (svn:author) on a range of revisions in a
> repo. It seems that despite the help text, it doesn't work.
>
> $ svnadmin --version
> svnadmin, version 1.6.6 (r40053)
> compiled Nov 2 2009, 22:39:33
>
> $ svnadmin help setrevprop
> setrevprop: usage: svnadmin setrevprop REPOS_PATH -r REVISION NAME FILE
> {snip}
> Valid options:
> -r [--revision] ARG : specify revision number ARG (or X:Y range)
>
> $ svnadmin setrevprop repo/ -r 1:2 svn:author message.txt
> svnadmin: Try 'svnadmin help' for more info
> svnadmin: Only one revision allowed
>
> So the help says I can use a range, but range syntax isn't actually
> accepted. Is this a known bug, or something that should be filed (or, of
> course, a PEBKAC problem)?

It's a side-effect of the fact that the Subversion command-line tools have a
shared option space, so the descriptions of a given option are generic
across all the subcommands for that tool. Because some of svnadmin's
subcommands accept revision ranges ("dump", for example), the global
description of that option insides that perhaps a range could be used.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2429110
Please start new threads on the <dev_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.

Received on 2009-12-10 07:51:01 CET

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

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