You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Michael Abele <mi...@aqcon.com> on 2004/10/18 14:34:31 UTC

Minor bug in svn mv?

Hello,

I think we have found a small bug in svn mv. We are using Subversion
1.0.6 on Windows with Apache 2.0.46. As I could not find any issue in
the tracker, I think the problem is not solved in newer SVN versions.
Normally we use TortoiseSVN but I was able to reproduce the bug with
command line svn. 

It occurs if we try to rename a folder with svn mv:
svn mv folder1 folder_1

Svn creates a new folder "folder_1" but even after a commit the .svn
folder inside the directory does not have the system flag property.

Nothing really frightening but ...

Best Regards
Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Minor bug in svn mv?

Posted by François Beausoleil <fb...@ftml.net>.

kfogel@collab.net wrote:
> "Michael Abele" <mi...@aqcon.com> writes:
> 
>>Svn creates a new folder "folder_1" but even after a commit the .svn
>>folder inside the directory does not have the system flag property.
> 
> 
> What is a "system flag property"?

In fact, it's probably the Hidden flag Michael's talking about.  Here's 
a repro recipe, Win32 only:

cd \
rd /s/q repos wc
cls
svn --version
svnadmin create repos
svn co file:///repos wc
cd wc
md dir1
echo >dir1\file1.txt
svn add dir1
svn ci -m "rev 1"
attrib dir1\.svn
svn mv dir1 dir2
svn ci -m "rev 2"
attrib dir2\.svn

Here's a sample run:

$ svn --version
svn, version 1.0.6 (r10360)
    compiled Jul 24 2004, 00:01:41

[snip]
$ svnadmin create repos

$ svn co file:///repos wc
Checked out revision 0.

$ cd wc

$ md dir1

$ echo  1>dir1\file1.txt

$ svn add dir1
A         dir1
A         dir1\file1.txt

$ svn ci -m "rev 1"
Adding         dir1
Adding         dir1\file1.txt
Transmitting file data .
Committed revision 1.

$ attrib dir1\.svn
     H      E:\wc\dir1\.svn

$ svn mv dir1 dir2
A         dir2
D         dir1\file1.txt
D         dir1

$ svn ci -m "rev 2"
Deleting       dir1
Adding         dir2

Committed revision 2.

$ attrib dir2\.svn
            E:\wc\dir2\.svn

Notice the difference between the attributes of dir1\.svn and dir2\.svn 
- dir2\.svn does not have the Hidden flag set.

Hope that helps,
François


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Minor bug in svn mv?

Posted by kf...@collab.net.
"Michael Abele" <mi...@aqcon.com> writes:
> Svn creates a new folder "folder_1" but even after a commit the .svn
> folder inside the directory does not have the system flag property.

What is a "system flag property"?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Minor bug in svn mv?

Posted by Dominic Anello <da...@danky.com>.
On 2004-10-18 16:34:31 +0200, Michael Abele wrote:
> Hello,
> 
> I think we have found a small bug in svn mv. We are using Subversion
> 1.0.6 on Windows with Apache 2.0.46. As I could not find any issue in
> the tracker, I think the problem is not solved in newer SVN versions.
> Normally we use TortoiseSVN but I was able to reproduce the bug with
> command line svn. 
> 
> It occurs if we try to rename a folder with svn mv:
> svn mv folder1 folder_1
> 
> Svn creates a new folder "folder_1" but even after a commit the .svn
> folder inside the directory does not have the system flag property.
----8<----

I assume you mean the system attribute under windows (attrib +S)?  If
that's the case, I've *never* observed svn to set that attribute.  It
does, however, set the "hidden" attribute (attrib +H)

D:\src\branches\ec-4.4\java>attrib .svn
    H      D:\src\branches\ec-4.4\java\.svn

-Dominic