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

svn diff ignores switches specified with `-x'

From: Eric Hanchrow <offby1_at_blarg.net>
Date: 2003-03-14 20:50:01 CET

    11:03:55 [offby1@offby1 silly]$ svn --version
    svn, version 0.19.1 (r5301)
       compiled Mar 12 2003, 22:35:34

    Copyright (C) 2000-2003 CollabNet.
    Subversion is open source software, see http://subversion.tigris.org/

    The following repository access (RA) modules are available:

    * ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
      - handles 'http' schema
    * ra_local : Module for accessing a repository on local disk.
      - handles 'file' schema
    * ra_svn : Module for accessing a repository using the svn network protocol.
      - handles 'svn' schema
    19:23:56 [offby1@offby1 config-files]$ svnadmin create ~/silly
    11:02:26 [offby1@offby1 config-files]$ cd /tmp
    11:02:29 [offby1_at_offby1 tmp]$ svn co file:///$HOME/silly
    Checked out revision 0.
    11:02:44 [offby1@offby1 tmp]$ cd silly/
    11:02:46 [offby1@offby1 silly]$ echo "hey you" > ya
    11:02:56 [offby1@offby1 silly]$ svn add ya
    A ya
    11:02:59 [offby1@offby1 silly]$ svn -m '' ci
    Adding ya
    Transmitting file data .
    Committed revision 1.
    11:03:39 [offby1@offby1 silly]$ echo "hey you" > ya
    11:03:45 [offby1@offby1 silly]$ svn diff
    Index: ya
    ===================================================================
    --- ya (revision 1)
    +++ ya (working copy)
    @@ -1 +1 @@
    -hey you
    +hey you

That's as I expected -- the wc file indeed differs from the
repository version.

    11:03:47 [offby1@offby1 silly]$ svn diff -x -wu
    Index: ya
    ===================================================================
    --- ya (revision 1)
    +++ ya (working copy)
    @@ -1 +1 @@
    -hey you
    +hey you

This is the bug -- I expected svn diff to report no differences,
since I thought I told it to ignore whitespace.

    11:45:54 [offby1@offby1 silly]$ uname -a
    Linux offby1 2.4.18crypto #1 Sat Nov 16 15:06:52 PST 2002 i686 unknown

    #! /bin/sh
    #
    # Created by configure

    "./configure" \
    "--prefix=/usr/local/stow/svn-0.19.1" \
    "--with-berkeley-db=/usr" \
    "$@"

   Berkeley DB db-4.1.25

-- 
PGP Fingerprint: 3E7B A3F3 96CA 8958 ACC5  C8BD 6337 0041 C01C 5276
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 14 20:50:44 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.