You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Joost van Dongen <jo...@ronimo-games.com> on 2011/08/03 18:18:11 UTC

SVN errors with junction points

Our SVN checkout is too big to fit on my small SSD harddisk, so I have
spread it over two harddisks using Windows 7 junction points. However, this
gives me weird SVN errors. These folders are my situation:

E:\SVN\BigFolder
D:\SVN\SmallFolder
D:\SVN\BigFolder >> junction point towards E:\SVN\BigFolder

I want to use the SVN entirely through d:\SVN and just pretent everything is
there. Windows Explorer does that exactly, but SVN gives me weird errors:

-When I try to update D:\SVN\BigFolder, I get this error: "D:\SVN\BigFolder
has no ancestry information".

-When I try to commit a file that is in D:\SVN\Bigfolder, I get this error:
"Commit failed (details follow): Entry for D:\SVN\BigFolder has no URL. Try
a CleanUp. If that doesn't work you need to do a fresh chackout."

I found a topic on the newsgroups that said SVN doesn't support creating and
removing junction points, but I am just trying to submit a file inside an
already existing junction point.

Interestingly, I have several other folders like BigFolder, and some work,
while some others don't. Also, which works and which doesn't seems to
randomly change sometimes.

So, what is going wrong here and how can I fix it?

Thanks in advance!

With kind regards,
Joost

Re: SVN errors with junction points

Posted by Thorsten Schöning <ts...@am-soft.de>.
Guten Tag Joost van Dongen,
am Mittwoch, 3. August 2011 um 18:18 schrieben Sie:

> So, what is going wrong here and how can I fix it?

I have a similar setup and the only solution for me was to always do
all operations in the original source, because most operations won't
work in the Junction itself.

Mit freundlichen Grüßen,

Thorsten Schöning

-- 
Thorsten Schöning
AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig
 
Telefon: Potsdam: 0331-743881-0
E-Mail:  tschoening@am-soft.de
Web:     http://www.am-soft.de

AM-SoFT GmbH IT-Systeme, Konsumhof 1-5, 14482 Potsdam
Amtsgericht Potsdam HRB 21278 P, Geschäftsführer: Andreas Muchow


Re: SVN errors with junction points

Posted by Joost van Dongen <jo...@ronimo-games.com>.
Some additional information: I just discovered that the ancestry information
error is only given when a file has actually been changed or added. So if
there are no updates for a folder on the SVN, then pressing update goes
fine. If there is something to get, then I get the ancestry error.

@Mark: The E disc contains lots of other data, and BigFolder is not the only
folder I did this to. There are around 10 more folders like BigFolder. So
mounting the entire disc won't work.

Greetz,
Joost

-
Joost van Dongen
Lead programmer / co-founder
Ronimo Gameswww.ronimo-games.com




2011/8/4 Cooke, Mark <ma...@siemens.com>

> > -----Original Message-----
> > From: joostdongen@gmail.com [mailto:joostdongen@gmail.com] On
> > Behalf Of Joost van Dongen
> > Sent: 04 August 2011 08:11
> > To: Cooke, Mark
> > Cc: Stefan Sperling; users@subversion.apache.org
> > Subject: Re: SVN errors with junction points
> >
> > As Mark guessed, I am indeed setting up the junction points
> > by hand. This is how I made it:
> >
> > -Create folder D:\SVN
> > -Do checkout on D:\SVN with "Immediate children, including
> >  folders", so only the folders come in and not their contents
> > -Do "fully recursive" update on D:\SVN\SmallFolder to get its contents
> > -Create folder E:\SVN
> > -Do checkout on E:\SVN with "Immediate children, including folders"
> > -Do "fully recursive" update on E:\SVN\BigFolder
> > -Remove the .svn folder from D:\SVN\BigFolder to make it
> > actually empty (required for junction points)
> > -Create junction point from D:\SVN\BigFolder to E:\SVN\BigFolder
> >
> > That's it! To Windows Explorer, D:\SVN now looks like a
> > complete checkout. However, SVN now gives the errors I posted
> > previously.
>
> Hmm, I've not used mount points much.  Do you have anything else on the e:\
> drive?  How about using Disk Manager to remove the e:\ drive and mount it
> directly as D:\SVN\BigFolder (The "Mount in the following empty NTFS folder"
> option)?  Then you should be able to do the checkout properly...
>
> Note: I cannot try this at the moment so YMMV!
>
> ~ mark c

RE: SVN errors with junction points

Posted by "Cooke, Mark" <ma...@siemens.com>.
> -----Original Message-----
> From: joostdongen@gmail.com [mailto:joostdongen@gmail.com] On 
> Behalf Of Joost van Dongen
> Sent: 04 August 2011 08:11
> To: Cooke, Mark
> Cc: Stefan Sperling; users@subversion.apache.org
> Subject: Re: SVN errors with junction points
> 
> As Mark guessed, I am indeed setting up the junction points 
> by hand. This is how I made it:
> 
> -Create folder D:\SVN
> -Do checkout on D:\SVN with "Immediate children, including 
>  folders", so only the folders come in and not their contents
> -Do "fully recursive" update on D:\SVN\SmallFolder to get its contents
> -Create folder E:\SVN
> -Do checkout on E:\SVN with "Immediate children, including folders"
> -Do "fully recursive" update on E:\SVN\BigFolder
> -Remove the .svn folder from D:\SVN\BigFolder to make it 
> actually empty (required for junction points)
> -Create junction point from D:\SVN\BigFolder to E:\SVN\BigFolder
> 
> That's it! To Windows Explorer, D:\SVN now looks like a 
> complete checkout. However, SVN now gives the errors I posted 
> previously.

Hmm, I've not used mount points much.  Do you have anything else on the e:\ drive?  How about using Disk Manager to remove the e:\ drive and mount it directly as D:\SVN\BigFolder (The "Mount in the following empty NTFS folder" option)?  Then you should be able to do the checkout properly...

Note: I cannot try this at the moment so YMMV!

~ mark c

Re: SVN errors with junction points

Posted by Joost van Dongen <jo...@ronimo-games.com>.
As Mark guessed, I am indeed setting up the junction points by hand. This is
how I made it:

-Create folder D:\SVN
-Do checkout on D:\SVN with "Immediate children, including folders", so only
the folders come in and not their contents
-Do "fully recursive" update on D:\SVN\SmallFolder to get its contents
-Create folder E:\SVN
-Do checkout on E:\SVN with "Immediate children, including folders"
-Do "fully recursive" update on E:\SVN\BigFolder
-Remove the .svn folder from D:\SVN\BigFolder to make it actually empty
(required for junction points)
-Create junction point from D:\SVN\BigFolder to E:\SVN\BigFolder

That's it! To Windows Explorer, D:\SVN now looks like a complete checkout.
However, SVN now gives the errors I posted previously.

With kind regards,
Joost

RE: SVN errors with junction points

Posted by "Cooke, Mark" <ma...@siemens.com>.
> -----Original Message-----
> From: Stefan Sperling [mailto:stsp@elego.de] 
> Sent: 03 August 2011 22:11
> To: Joost van Dongen
> Cc: users@subversion.apache.org
> Subject: Re: SVN errors with junction points
> 
> On Wed, Aug 03, 2011 at 06:18:11PM +0200, Joost van Dongen wrote:
> > Our SVN checkout is too big to fit on my small SSD 
> harddisk, so I have
> > spread it over two harddisks using Windows 7 junction points.
> 
> Sorry, Subversion doesn't support NTFS junctions.
> See http://subversion.tigris.org/issues/show_bug.cgi?id=3570
> 
I'm not sure that is the problem, my understanding from the OP was he is only trying to get subversion to checkout into a (partially prepared?) tree that happens to have a junction in it...

> E:\SVN\BigFolder
> D:\SVN\SmallFolder
> D:\SVN\BigFolder >> junction point towards E:\SVN\BigFolder
> 
> I want to use the SVN entirely through d:\SVN and just 
> pretent everything is there. Windows Explorer does that 
> exactly, but SVN gives me weird errors:
> 
> -When I try to update D:\SVN\BigFolder, I get this error: 
> "D:\SVN\BigFolder has no ancestry information".

I suspect the problem is around how the checkout was done.  Subversion would not be able to create the `BigFolder` junction, so this must have been created by hand and the checkout in several passes?  This might then cause a discontinuity in the tree?

Joost, can you clarify how you did the checkout originally?  I do not think there is a svn solution to this but there may be a windoze one...


~ mark c

Re: SVN errors with junction points

Posted by Stefan Sperling <st...@elego.de>.
On Wed, Aug 03, 2011 at 06:18:11PM +0200, Joost van Dongen wrote:
> Our SVN checkout is too big to fit on my small SSD harddisk, so I have
> spread it over two harddisks using Windows 7 junction points.

Sorry, Subversion doesn't support NTFS junctions.
See http://subversion.tigris.org/issues/show_bug.cgi?id=3570