Create a file. Copy parent directory to branch. Change both copies of
the file. Switch a working copy file. Running log on the working copy
file reports on unswitched file.
$ svnadmin create repo
$ svn mkdir file://`pwd`/repo/trunk
$ svn co file://`pwd`/repo/trunk wc
$ echo foo > wc/foo
$ svn add wc/foo
$ svn ci -m "trunk create" wc
$ svn cp -m "branch cp" file://`pwd`/repo/trunk file://`pwd`/repo/branch
$ svn ps x x wc/foo
$ svn ci -m "trunk ps" wc
$ svn sw file://`pwd`/repo/branch/foo wc/foo
$ svn ps y y wc/foo
$ svn ci -m "branch ps" wc
Now
$ svn log file://`pwd`/repo/branch/foo
is as expected, but
$ svn log wc/foo
shows the log for the trunk.