You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Kevin Puetz <pu...@puetzk.org> on 2005/05/01 14:27:22 UTC
Re: updating to dates
Philip M. Gollucci wrote:
> I've read the HTML docs for 1.1 on the subversion webpage.
> valid options:
> -r [--revision] arg : ARG (some commands also take ARG1:ARG2
> range)
> A revision argument can be one of:
> "{" DATE "}" revision at start of the
> date
>
> Say for instance I have the mod_perl2 code checked out.
>
> Why does this command not work ?
>
> >svn update -r {2005-04-05}
try svn update -r '{2005-04-05}'
Your shell probably does brace expansion (many do, though most only if
there's multiple comma-separated items in the braces).
> svn: Syntax error in revision argument '2005-04-05'
Note that the braces were lost.
> As far as I can tell this is the date format used in the manual. What
> am I missing ?
>
> Thanks in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: updating to dates
Posted by Dale Worley <dw...@pingtel.com>.
> > Why does this command not work ?
> >
> > >svn update -r {2005-04-05}
>
> try svn update -r '{2005-04-05}'
>
> Your shell probably does brace expansion (many do, though most only if
> there's multiple comma-separated items in the braces).
A very effective way to solve problems like this is to prefix the command in
question with "echo":
$ echo svn update -r {2005-04-05}
svn update -r 2005-04-05
Echo shows how the arguments are really being passed to svn.
You can also use "set -x" to get the shell to print out each command just
before it is called. ("set +x" turns that off.)
Dale
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org