Bug#372507: subversion: svn diff fails locally

dann frazier dannf at hp.com
Fri Jun 9 19:29:07 UTC 2006


Package: subversion
Version: 1.3.2-1
Severity: normal

If I svn diff two differing local directories, svn returns 0
and gives no output.  I would expect svn diff to operate on local
dirs the same way it does on remote dirs and report a difference.

To illustrate:

## Create a repository from scratch
dannf at krebs:~$ mkdir /tmp/svn
dannf at krebs:~$ cd /tmp/svn
dannf at krebs:/tmp/svn$ mkdir repo
dannf at krebs:/tmp/svn$ cd repo
dannf at krebs:/tmp/svn/repo$ svnadmin create foo
## Check it out
dannf at krebs:/tmp/svn/repo$ cd ..
dannf at krebs:/tmp/svn$ mkdir co
dannf at krebs:/tmp/svn$ cd co
dannf at krebs:/tmp/svn/co$ svn co file:///tmp/svn/repo/foo .
Checked out revision 0.
## Create two directories
dannf at krebs:/tmp/svn/co$ svn mkdir a b
A         a
A         b
dannf at krebs:/tmp/svn/co$ svn commit -m 'create dirs'
Adding         a
Adding         b

Committed revision 1.
## Populate them with different contents
dannf at krebs:/tmp/svn/co$ echo bar > a/file
dannf at krebs:/tmp/svn/co$ echo baz > b/file
dannf at krebs:/tmp/svn/co$ svn add a/file b/file
A         a/file
A         b/file
dannf at krebs:/tmp/svn/co$ svn commit -m 'create differing files'
Adding         a/file
Adding         b/file
Transmitting file data ..
Committed revision 2.
## Local svn diff shows differences
dannf at krebs:/tmp/svn/co$ svn diff a/ b/
dannf at krebs:/tmp/svn/co$ echo $?
0
## diff see differences
dannf at krebs:/tmp/svn/co$ diff -urN -x.svn a b
diff -urN -x.svn a/file b/file
--- a/file      2006-06-09 12:48:17.000000000 -0600
+++ b/file      2006-06-09 12:48:21.000000000 -0600
@@ -1 +1 @@
-bar
+baz
## As does a remote svn diff
dannf at krebs:/tmp/svn/co$ svn diff file:///tmp/svn/repo/foo/a file:///tmp/svn/repo/foo/b
Index: file
===================================================================
--- file        (.../a) (revision 2)
+++ file        (.../b) (revision 2)
@@ -1 +1 @@
-bar
+baz

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: ia64
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-mckinley
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages subversion depends on:
ii  libapr0                       2.0.55-4   the Apache Portable Runtime
ii  libc6.1                       2.3.6-13   GNU C Library: Shared libraries
ii  libsvn0                       1.3.2-1    shared libraries used by Subversio
ii  patch                         2.5.9-4    Apply a diff file to an original

subversion recommends no packages.

-- no debconf information





More information about the pkg-subversion-maintainers mailing list