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

Inconsistent way of showing added/deleted trees (?)

From: Mathias Weinert <mathias.gfa-net.de_at_gfa-net.de>
Date: 2006-02-15 14:17:22 CET

Hi there,

I found some output which IMHO is inconsistent and
would like to ask you if this is
a) a feature
b) a bug
c) a matter of design
d) an african swallow
e) anything else

weinert ~/Subversion/work/trunk
$ mkdir subdir

weinert ~/Subversion/work/trunk
$ touch subdir/file

weinert ~/Subversion/work/trunk
$ svn add subdir
A subdir
A subdir/file

-> I add a tree svn shows me all added paths

weinert ~/Subversion/work/trunk
$ svn st
A subdir
A subdir/file

-> 'svn st' shows the same as 'svn add'

weinert ~/Subversion/work/trunk
$ svn ci -m "subdir added"
Adding subdir
Adding subdir/file
Transmitting file data .
Committed revision 226.

-> 'svn ci' shows the same as 'svn add'

weinert ~/Subversion/work/trunk
$ svn log -r HEAD -v
------------------------------------------------------------------------
r226 | wallace | 2006-02-15 13:56:18 +0100 (Wed, 15 Feb 2006) | 1 line
Changed paths:
   A /trunk/subdir
   A /trunk/subdir/file

subdir added
------------------------------------------------------------------------

-> 'svn log' shows the same as 'svn add'

weinert ~/Subversion/work/trunk
$ svn mv subdir testdir
A testdir
D subdir/file
D subdir

-> now I move subdir to testdir and I see all deleted
   paths but only the top level of the added ones
   (different to the previous outputs)

weinert ~/Subversion/work/trunk
$ svn st
D subdir
D subdir/file
A + testdir

-> 'svn st' now also gives such an output

weinert ~/Subversion/work/trunk
$ svn ci -m "subdir moved to testdir"
Deleting subdir
Adding testdir

Committed revision 227.

-> but 'svn ci' only shows the top level directories
   for both A and D

weinert ~/Subversion/work/trunk
$ svn log -r HEAD -v
------------------------------------------------------------------------
r227 | wallace | 2006-02-15 13:56:54 +0100 (Wed, 15 Feb 2006) | 1 line
Changed paths:
   D /trunk/subdir
   A /trunk/testdir (from /trunk/subdir:226)

subdir moved to testdir
------------------------------------------------------------------------

-> 'svn log' shows the same as 'svn ci'

In short: If I add a new path, all used Subversion
commands show the whole tree. But when I copy this
path 'mv' and 'st' only show the complete tree for
the delete action although again a completely new
path is added to the repository. And in addition to
that 'ci' and 'log' compress both paths, source
and target.

So for me it is first inconsistent that 'mv' and 'st'
sometimes show the complete tree of the added path
but sometimes only the top level path.
And second I find it even more inconsistent that for
the same action (a move) 'mv' and 'st' give a different
output than 'ci' and 'log'.

May be I am a bit to pedantic, but nevertheless
I am curious to know what you think about this.

Mathias

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 16 00:09:58 2006

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