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

Re: Bugs in "svn log multiple-local-targets"

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2003-09-30 03:17:47 CEST

Julian Foad wrote:
> I have found some bugs in "svn log" with multiple targets, when using a
> local revision specifier such as the default "BASE:1". For each target
> T, it was trying to print the merged log of all targets but using T to
> resolve the revision number.
>
> 1. It should resolve the revision number separately for each target
> (relatively simple bug fix).
> 2a. It should only print the logs for that target (relatively simple),
> or ...
> 2b. it should merge the logs from all targets together (relatively hard).

I haven't filed an issue or written regression tests yet, but the script below demonstrates the problems.

- Julian

[[[
#!/bin/bash
# Show bugs in "svn log"

set -x -e
TEST_DIR=svn-log-test
mkdir $TEST_DIR
cd $TEST_DIR
svnadmin create repos
REPOS=file://`pwd`/repos
svn co $REPOS wc
cd wc

# Now we have a repository and a WC, start playing in the WC.
echo "File a." > a
echo "File b." > b
echo "File c." > c
svn add a b c
svn ci -m "One line in a." a
svn ci -m "One line in b." b
svn ci -m "Unrelated file c." c
echo "a: line 2" >> a
echo "b: line 2" >> b
svn ci -m "Second line in each."

LOG='svn log -q'

$LOG a b ### should merge the logs. Should show only relevant entries.
$LOG . a
svn up -r1 a
$LOG a b ### should not abort
]]]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 30 03:17:08 2003

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.