Your message dated Fri, 4 Jul 2008 02:56:24 -0500
with message-id <[EMAIL PROTECTED]>
and subject line the bug is simply incorrect usage
has caused the Debian Bug report #372507,
regarding subversion: svn diff fails locally
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
372507: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=372507
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
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
[EMAIL PROTECTED]:~$ mkdir /tmp/svn
[EMAIL PROTECTED]:~$ cd /tmp/svn
[EMAIL PROTECTED]:/tmp/svn$ mkdir repo
[EMAIL PROTECTED]:/tmp/svn$ cd repo
[EMAIL PROTECTED]:/tmp/svn/repo$ svnadmin create foo
## Check it out
[EMAIL PROTECTED]:/tmp/svn/repo$ cd ..
[EMAIL PROTECTED]:/tmp/svn$ mkdir co
[EMAIL PROTECTED]:/tmp/svn$ cd co
[EMAIL PROTECTED]:/tmp/svn/co$ svn co file:///tmp/svn/repo/foo .
Checked out revision 0.
## Create two directories
[EMAIL PROTECTED]:/tmp/svn/co$ svn mkdir a b
A a
A b
[EMAIL PROTECTED]:/tmp/svn/co$ svn commit -m 'create dirs'
Adding a
Adding b
Committed revision 1.
## Populate them with different contents
[EMAIL PROTECTED]:/tmp/svn/co$ echo bar > a/file
[EMAIL PROTECTED]:/tmp/svn/co$ echo baz > b/file
[EMAIL PROTECTED]:/tmp/svn/co$ svn add a/file b/file
A a/file
A b/file
[EMAIL PROTECTED]:/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
[EMAIL PROTECTED]:/tmp/svn/co$ svn diff a/ b/
[EMAIL PROTECTED]:/tmp/svn/co$ echo $?
0
## diff see differences
[EMAIL PROTECTED]:/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
[EMAIL PROTECTED]:/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
--- End Message ---
--- Begin Message ---
I'm closing this bug as it is simply a misunderstanding about the
command line interface. "svn diff a b" is exactly like
"svn diff a; svn diff b". If you want regular file differencing,
use something like "diff -urNx.svn a b".
--
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
--- End Message ---