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

Re: propset, revert - Is this the expected behavior

From: John Szakmeister <john_at_szakmeister.net>
Date: 2005-02-14 11:56:29 CET

Madan U Sreenivasan wrote:
> Hi ppl,
> Could someone validate the following for me and tell me if this is the
> expected behavior...
> The following commands in short :
> propset, propdel, revert : sets the property back on to the file
> propdel, propset, revert : does NOT delete the property from the file.
>
> The sequence as I saw it.....
> [madan@madan mod1]$ svn proplist mod1two.c
> [madan@madan mod1]$ svn propset svn:keywords "Rev" mod1two.c
> property 'svn:keywords' set on 'mod1two.c'
> [madan@madan mod1]$ svn proplist mod1two.c
> Properties on 'mod1two.c':
> svn:keywords
> [madan@madan mod1]$ svn propdel svn:keywords mod1two.c
> property 'svn:keywords' deleted from 'mod1two.c'.
> [madan@madan mod1]$ svn revert mod1two.c
> Reverted 'mod1two.c'
> [madan@madan mod1]$ svn proplist mod1two.c
> Properties on 'mod1two.c':
> svn:keywords
> [madan@madan mod1]$

I get this:
  jszakmeister@linux:/tmp/wc
  :: svn pl file.abc
  jszakmeister@linux:/tmp/wc
  :: svn ps svn:keywords "Rev" file.abc
  property 'svn:keywords' set on 'file.abc'
  jszakmeister@linux:/tmp/wc
  :: svn pl file.abc
  Properties on 'file.abc':
    svn:keywords
  jszakmeister@linux:/tmp/wc
  :: svn pd svn:keywords file.abc
  property 'svn:keywords' deleted from 'file.abc'.
  jszakmeister@linux:/tmp/wc
  :: svn revert file.abc
  jszakmeister@linux:/tmp/wc
  :: svn pl file.abc
  jszakmeister@linux:/tmp/wc
  ::

What I got above is what should happen, *if* you didn't have
svn:keywords set in a previous revision.

> ----------------------------------------------------------------------------------------------
>
> [madan@madan mod1]$ svn propdel svn:keywords mod1two.c
> property 'svn:keywords' deleted from 'mod1two.c'.
> [madan@madan mod1]$ svn proplist mod1two.c
> [madan@madan mod1]$ svn propset svn:keywords "Rev" mod1two.c
> property 'svn:keywords' set on 'mod1two.c'
> [madan@madan mod1]$ svn proplist mod1two.c
> Properties on 'mod1two.c':
> svn:keywords
> [madan@madan mod1]$ svn revert mod1two.c
> [madan@madan mod1]$ svn proplist mod1two.c
> Properties on 'mod1two.c':
> svn:keywords
> [madan@madan mod1]$
> --------------------------------------------------------------------------------------------------------------

Again, the above worked out for me as expected: 'svn:keywords' was
removed by the revert.

Do you have auto-props enabled, or did the file have svn:keywords set
before? I imagine that the property existed in the base before you
clobbered it with the 'svn propset' command, or deleted it somehow
before walking down this path.

Perhaps try running 'svn pl -v' against mod1two.c's URL in the
repository. I think it's going to turn up some answers for you. If
not, report back with the version of your client, and a reproduction
script. What you have is close, but something that adds the file,
commits it, and then goes down this path would be more useful in making
sure I'm indeed doing the same thing as you. Also, it might be useful
to attach your config out of the ~/.subversion directory.

FYI, I did this using 1.1.1 of the client.

-John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 14 11:58:46 2005

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.