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

Subversion 1.12.2: "svn diff --changelist ARG" broken in subdirectories?

From: Tobias Bading <tbading_at_web.de>
Date: Tue, 30 Jul 2019 15:40:08 +0200

Hi.

I just built Subversion 1.12.2 on GNU/Linux and "make check" didn't show any problems.
But in this version, "svn diff --changelist ARG" only works in the root of a working copy. In any subdirectory of the working copy, there's no output at all.

Here's a little shell script that reproduces the problem:

--- %< ---

#!/bin/sh

##############################################################################
## ##
## Script to reproduce a bug where "svn diff --changelist ABC" shows ##
## nothing when executed in a subdirectory of a working copy root. ##
## ##
##############################################################################

SVN=`which svn`
SVNADMIN=`which svnadmin`

URL=file:///`pwd`/test-repo

rm -rf test-repo test-repo-wc

echo ""
echo "### Creating empty test repository..."
${SVNADMIN} create test-repo
echo ""

echo "### Checking out working copy of empty repository..."
${SVN} co -q ${URL} test-repo-wc
echo ""

echo "### Creating/adding file subdir/abc.txt in working copy..."
mkdir test-repo-wc/subdir
echo "This sucks." > test-repo-wc/subdir/abc.txt
${SVN} add --parents test-repo-wc/subdir/abc.txt
echo ""

echo "### Committing changes to repository..."
${SVN} ci -m "file added" test-repo-wc
echo ""

echo "### Adding file to changelist test..."
${SVN} changelist test test-repo-wc/subdir/abc.txt
echo ""

echo "### Adding line to file..."
echo 'It does.' >> test-repo-wc/subdir/abc.txt
echo ""

echo '### Output of "svn diff --changelist test" in root of working copy:'
( cd test-repo-wc ; ${SVN} diff --changelist test )
echo ""

echo '### Output of "svn diff --changelist test" in directory subdir:'
echo "### (except for the path name, this diff should be identical to the previous,"
echo " but there is no output at all in Subversion 1.12.2)"
( cd test-repo-wc/subdir ; ${SVN} diff --changelist test )
echo ""

--- >% ---

The last diff has no output. This script works fine with Subversion 1.10.6.

Is anyone able to reproduce this?

Thanks,
Tobias

PS: I'm not subscribed to the mailing list, so please keep me CC'd.
Received on 2019-07-30 15:40:23 CEST

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.