You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Boris <bo...@kafana.org> on 2004/02/28 23:26:38 UTC

Problems with "svn status" command and NTFS junction points

Hello, 

I just posted this problem to TortoiseSVN mailing list, but then I realized
that this problem may not be related to TortoiseSVN client, so I decided to
try on this list. 
I'm using both clients (TortoiseSVN and the svn command line client), and
both of them have similar problem.
The problem I'm having with the svn client is when I try to check the status
of my svn working copy files and directories using the "svn status -u"
command from the linked NTFS junction point directory. The command fails
with the following error: "svn: Working copy 'Build' not locked". (Build is
one of the directories inside of the svn working copy). 
If I run this command from the original directory, everything works fine.

The two directories are linked with the windows linkd.exe command:
Example:
"linkd 'C:\MySvnLinkDir' 'C:\Path\To\MySvnWokingCopyDir'".

Has anybody else had similar problems, and is anybody using svn client with
NTFS junction points?

Thanks. 

- Boris


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

Re: Problems with "svn status" command and NTFS junction points

Posted by Juanma Barranquero <jm...@wke.es>.
On Tue, 02 Mar 2004 10:55:20 +0100 (CET)
Branko Cibej <br...@xbc.nu> wrote:

> Another insteresting data point is that "svnadmin hotcopy" will igonore symlinks
> in the hooks directory, which is unfortunate if you link your hook scripts in
> from sonewhere else

Hmm... Curious. I my repositories, the whole hooks/ dir is a junction. I
usually do:

 C:\data\repos> svnadmin create new-one
 C:\data\repos> cd new-one
 C:\data\repos\new-one> rd /s hooks
 C:\data\repos\new-one> junction hooks C:\data\hooks

(C:\data\hooks is my main hooks/ dir)

After that:

 C:\data\repos> svnadmin hotcopy new-one c:\data\backup\new-one

copies the whole repository, hooks and all.

> (as I do, so that I can keep the hooks in an SVN WC, guess
> why :-).

I've found less error prone to have the hooks in a SVN wc elsewhere, but
copy them to C:\data\hooks when they're ready. The problem with my
junction approach is that, every now and then, I do:

 C:\data\repos> rd /s test-repo

and I accidentally remove C:\data\hooks contents too. To stop that, now I
have an empty read-only file in C:\data\repos named
DONT_REMOVE_WITHOUT_DELETING_THE_JUNCTION_FIRST (which shows in red,
thanks to 4NT colored directory listings :)

                                                                Juanma



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

RE: Problems with "svn status" command and NTFS junction points

Posted by Boris <bo...@kafana.org>.
> > > I did some additional testing and realized that the svn commit command
> > > also can't handle NTFS junction points.
> >
> > If any part of svn can't handle junctions, then that's true for *all* of
> > svn.
> > It's not even svn at fault here... it's APR's file i/o abilities.  SVN
> > uses APR for all disk access.  I think you guys need to take this
> > question to the APR dev list and ask what's up. 
>
> Branko wrote:
> I don't think it's not APR's problem. Try doing the same thing on Unix,
> replacing "junction" with "szmlink". IIRC you'll get similar results. APR
> treats
> NTFS junctions as symbolic links (which is correct), but Subversion is
> eminently
> stupid about symbolic links, even when you don't try to make them part of
> the
> working copy.

If this is the case, then can I officially request this issue to be fixed in
the future Subversion releases?
Also, I'm not sure what the status is on handling other NTFS reparse points
such as volume mount points, but I guess if they are not working right, this
fix should include them all. 

Thanks. 

- Boris 



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

Re: Problems with "svn status" command and NTFS junction points

Posted by Branko Cibej <br...@xbc.nu>.
Quoting Ben Collins-Sussman <su...@collab.net>:

> Boris wrote:
> 
> > I did some additional testing and realized that the svn commit command
> > also can't handle NTFS junction points.
> 
> If any part of svn can't handle junctions, then that's true for *all* of
> svn.
> It's not even svn at fault here... it's APR's file i/o abilities.  SVN
> uses APR for all disk access.  I think you guys need to take this 
> question to the APR dev list and ask what's up.

I don't think it's not APR's problem. Try doing the same thing on Unix,
replacing "junction" with "szmlink". IIRC you'll get similar results. APR treats
NTFS junctions as symbolic links (which is correct), but Subversion is eminently
stupid about symbolic links, even when you don't try to make them part of the
working copy.

For example, the SVN client will barf if you move a .svn directory out of the WC
and create a symlink to it instead.

Another insteresting data point is that "svnadmin hotcopy" will igonore symlinks
in the hooks directory, which is unfortunate if you link your hook scripts in
from sonewhere else (as I do, so that I can keep the hooks in an SVN WC, guess
why :-).

In short -- it's a bug. The _reason_ for the bug is that we "don't handle
symbolic links," and we didn't bother to make the distinction between symlinks
_in_ the WC and symlinks _to_ the WC (and unversioned parts thereof). We could
fix this in 1.0.x, if the problem is serious enough.


-- Brane

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

Re: Problems with "svn status" command and NTFS junction points

Posted by Ben Collins-Sussman <su...@collab.net>.
Boris wrote:

> I did some additional testing and realized that the svn commit command also
> can't handle NTFS junction points.

If any part of svn can't handle junctions, then that's true for *all* of 
svn.

It's not even svn at fault here... it's APR's file i/o abilities.  SVN 
uses APR for all disk access.  I think you guys need to take this 
question to the APR dev list and ask what's up.


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

RE: Problems with "svn status" command and NTFS junction points

Posted by Boris <bo...@kafana.org>.
I did some additional testing and realized that the svn commit command also
can't handle NTFS junction points.

C:\MySvnLinkDir>svn add MyFile.txt
A         MyFile.txt

C:\MySvnLinkDir>svn commit -m "Test Message."
svn: 'C:' is not a working copy

Of course it succeeded from the original working directory:
C:\MySvnLinkDir>cd C:\Path\To\MySvnWokingCopyDir

C:\Path\To\MySvnWokingCopyDir>svn commit -m "Test Message."
Adding         MyFile.txt
Transmitting file data .
Committed revision 24.

>>> Has anybody else had similar problems, and is anybody using svn client
with
>>> NTFS junction points?
>>I get results different from yours (but still puzzling):  
>>  C:\testjunc> svn status -u
>>  ~   S          97   .
>>  Status against revision:     97

That's what I'm getting (or at least something similar) when I run "svn
stat" without any additional flags.
C:\MySvnLinkDir>svn stat
~   S  .

- Boris


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

Re: Problems with "svn status" command and NTFS junction points

Posted by Juanma Barranquero <le...@terra.es>.
On Sat, 28 Feb 2004 18:26:38 -0500, "Boris" <bo...@kafana.org> wrote:

> Has anybody else had similar problems, and is anybody using svn client with
> NTFS junction points?

I get results different from yours (but still puzzling):

  C:\> cd testdir
  
  C:\testdir> svn status -u
  Status against revision:     97
  
  C:\testdir> cd ..
  
  C:\> junction testjunc testdir
  
  Junction v1.02 - Win2K junction creator and reparse point viewer
  Copyright (C) 2000 Mark Russinovich
  Systems Internals - http://www.sysinternals.com
  
  Created: C:\testjunc
  Targetted at: C:\testdir
  
  C:\> cd testjunc
  
  C:\testjunc> svn status -u
  ~   S          97   .
  Status against revision:     97
  
  C:\testjunc>

(BTW, I know nothing about linkd.exe; I'm using junction.exe, from
sysinternals).

                                                           /L/e/k/t/u


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