Merge success depends on whether target is directory or file
From: <x_svn-dev_x_at_nospam.pz.podzone.net>
Date: Tue, 8 Sep 2009 14:27:10 +0100
Hi,
I had this confirmed as a (potential) bug by @stsp on #svn, who asked
In case there's some problem with the pasting, it's also at:
Problem:
svn merge finds a conflict when the target is ./ but is happy to merge
Although not shown, when --dry-run is removed it prompts on the
-------------------------------------------------------------------
~/svn/sandbox$ svn commit -m 'Create trunk branches tags.'
Committed revision 698.
~/svn/sandbox$ cd trunk/
~/svn/sandbox/trunk$ dd if=/dev/urandom of=file.bin bs=1k count=1
~/svn/sandbox/trunk$ ls -l
~/svn/sandbox/trunk$ md5sum file.bin
~/svn/sandbox/trunk$ svn add file.bin
~/svn/sandbox/trunk$ svn commit -m 'Add file.bin'
~/svn/sandbox/trunk$ svn pg svn:mime-type file.bin
~/svn/sandbox/trunk$ cd ..
~/svn/sandbox$ svn cp trunk/ branches/mybranch
~/svn/sandbox$ cd branches/mybranch
~/svn/sandbox/branches/mybranch$ svn commit . -m 'Create branches/mybranch'
Committed revision 700.
~/svn/sandbox/branches/mybranch$ ls -l
~/svn/sandbox/branches/mybranch$ md5sum file.bin
~/svn/sandbox/branches/mybranch$ svn status
~/svn/sandbox/branches/mybranch$ svn pg svn:mime-type file.bin
~/svn/sandbox/branches/mybranch$ dd if=/dev/urandom of=file.bin bs=1k count=1
~/svn/sandbox/branches/mybranch$ svn status
~/svn/sandbox/branches/mybranch$ md5sum file.bin
~/svn/sandbox/branches/mybranch$ svn commit -m 'Changed file.bin'
~/svn/sandbox/branches/mybranch$ cd ../..
~/svn/sandbox$ svn status
~/svn/sandbox$ cd trunk/
~/svn/sandbox/trunk$ ls -l
~/svn/sandbox/trunk$ md5sum file.bin ../branches/mybranch/file.bin
~/svn/sandbox/trunk$ svn pg svn:mime-type file.bin ../branches/mybranch/file.bin
~/svn/sandbox/trunk$ svn merge --dry-run -c 701 ../branches/mybranch/file.bin ./
~/svn/sandbox/trunk$ svn merge --dry-run -c 701 ../branches/mybranch/file.bin ./file.bin
~/svn/sandbox/trunk$
~/svn/sandbox/trunk$ svn --version
Copyright (C) 2000-2009 CollabNet.
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
~/svn/sandbox/trunk$
-------------------------------------------------------------------
# svnserve --version
Copyright (C) 2000-2006 CollabNet.
The following repository back-end (FS) modules are available:
* fs_base : Module for working with a Berkeley DB repository.
-------------------------------------------------------------------
~/svn/sandbox/trunk$ svn --version
Copyright (C) 2000-2009 CollabNet.
The following repository access (RA) modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
~/svn/sandbox/trunk$ svn merge --dry-run -c 701 ../branches/mybranch/file.bin ./
~/svn/sandbox/trunk$ svn merge --dry-run -c 701 ../branches/mybranch/file.bin ./file.bin
~/svn/sandbox/trunk$ svn pg svn:mime-type file.bin ../branches/mybranch/file.bin
~/svn/sandbox/trunk$
-------------------------------------------------------------------
------------------------------------------------------
|
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.