dglasser_at_gmail.com wrote on 02/21/2008 01:16:08 PM:
> On Thu, Feb 21, 2008 at 12:35 PM, <kmradke_at_rockwellcollins.com> wrote:
> > dglasser_at_gmail.com wrote on 02/21/2008 11:01:21 AM:
> >
> > > On Thu, Feb 21, 2008 at 11:53 AM, Erik Huelsmann <ehuels_at_gmail.com>
> > wrote:
> > > > Can you change the content of the property to something valid
using
> > > > propedit? (Something valid would be "link a" for example,
meaning you
> > > > want a symlink to the object "a" in the current directory.)
> > >
> > > The property content is ignored (in fact, normalized to '*'). It's
> > > the file content that contains "link foo". You could use "svnput"
I
> > > guess.
> > >
> > > > > And I still can't check it out into a working copy to remove
it,
> > and
> > > > > 'svn propdel' complains about a missing base revision, just
like
> > 'svn
> > > > > propset'.
> > > >
> > > > Ok. We'll need to look into that.
> > >
> > > Yeah, we should add --base-rev to ps and pd in 1.6.
> >
> > Please forgive my ignorance here, but why doesn't 'svn propedit'
> > require a --base-rev as well?
> >
> > I.E. why is directly editing any different than directly adding
> > or deleting?
>
> 'svn propedit' works by:
>
> (1) asking the repository for the current value of the property *and*
> its revision
> (2) letting the user edit the property
> (3) using an API to say "set the property to the new value, using the
> revision we got in Step (1) as base_revision
>
>
> For propset/propdel the user would have to manually look up the
baserevision.
I just dug into the code and noticed this. However, my thoughts if
propset/propdel
would assume HEAD as the baserev:
1) For propdel 2 things could have happened:
a) Some other user just deleted it. So what, you were trying to delete
it too!
b) Some other user modified it. So what, you were trying to delete it,
so
do you really care? In any case, the whole history of the changes
are
captured as revisions.
2) For propset 1 thing could have happened:
a) Some other user just created it. So you get an error stating it
already
exists and you will need to use propedit instead.
Are any of these "bad"? 1b is the worst, but doesn't seem like unexpected
behavior.
I suppose you could argue that a long time could have passed since the
original user manually looked at the properties so 1 and or 2 could
have occurred multiple times. Still, the whole history of changes
is available, so nothing is lost...
Is this really different than adding/deleting file contents directly in
the
repository using URLs?
Kevin R.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-02-21 20:52:15 CET