You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by na...@ciklum.net on 2007/10/19 15:25:25 UTC

concerning repository storage type

Hi,

i just realized, that i am lost in SVN repository type choice...

Me and other team member make ASP.NET web site. I've created repository on development server and we use it to work simulteneously.
BUT naturally I also need to use this remote storage as virtual folder (for IIS) to run the testing site...
Does it mean that when creating repository, I need to indicate file storage type (not Berkeley), otherwise I will just have my files inside DB and won't be able to run anything...?
What in common is a sense of using DB then?

Sorry, I am a novice.

Regards,
Alexander.

Re: RE: Re: concerning repository storage type

Posted by na...@ciklum.net.
Well...don't forget to share all your experience with us, hehehe :)

Seriously - thank you for the advices!
I'm an absolute rookie in svn'ing as well as in asp.net + c#, so these all 
huge changes frighten me a little bit...

----- Original Message ----- 
From: "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>
To: <na...@ciklum.net>; "Andy Levy" <an...@gmail.com>
Cc: <us...@subversion.tigris.org>
Sent: Monday, October 22, 2007 4:49 PM
Subject: RE: RE: Re: concerning repository storage type




> -----Original Message-----
> From: Bicking, David (HHoldings, IT)

> I just tested that one can define svn:externals so that
> multiple sources can be dumped into a single folder.  This


I spoke too soon about this.  I just examined the physical workspace,
and the second definition overwrote the first.  It deleted the file
deposited by the first one.  This is a bummer :(

I have to come up with another plan for sharing DLLs from multiple
locations.  I suspect I'll have to fall back upon simply storing the
binaries in the individual projects.


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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


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

RE: RE: Re: concerning repository storage type

Posted by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>.
 

> -----Original Message-----
> From: Bicking, David (HHoldings, IT) 

> I just tested that one can define svn:externals so that 
> multiple sources can be dumped into a single folder.  This 


I spoke too soon about this.  I just examined the physical workspace,
and the second definition overwrote the first.  It deleted the file
deposited by the first one.  This is a bummer :(

I have to come up with another plan for sharing DLLs from multiple
locations.  I suspect I'll have to fall back upon simply storing the
binaries in the individual projects.


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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


RE: Re: concerning repository storage type

Posted by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>.
> -----Original Message-----
> From: nav@ciklum.net [mailto:nav@ciklum.net] 
> Sent: Monday, October 22, 2007 6:53 AM
> To: Andy Levy
> Cc: users@subversion.tigris.org
> Subject: Re: concerning repository storage type
> 
> Thanks!
> But here is one more question:
> 
> there are actually several sites we're going to work on, and 
> these sites use some common components.
> Website1 = Solution1 = Project1 + Project2
> Website2 = Solution 2 = Project3 + Project2
> 
> here Project2 is some common classes
> 
> Taking this into consideration, it looks like both sites 
> should reside in the same repository:
> Repository:
> Project1,
> Project2,
> Project3
> 

<snip>

We're also using Visual Studio.  I suggest that you consider referencing
your shared project as a compiled DLL rather than "sharing" the source.
When you have multiple teams working on the same shared code for
different purposes, one team is likely to break the shared code for
another.  


I would create a solution for the shared project that has its own
associated test project(s), and when you need to update the shared code
for a "client" project, dedicate a resource to do so.  Test it, build
it, put the DLL in some folder in SVN, and tell the other teams to
update their svn:externals definitions (which should be defined for
specific revisions).  

If, despite the coordination durring development another project breaks,
they can fall back to the older version, thus reducing disruptions, and
giving breathing room to resolve those issues in controlled conditions.

I just tested that one can define svn:externals so that multiple sources
can be dumped into a single folder.  This means that many shared
projects' DLLs can be dumped into a single library folder per end-state
project.  Due to the nature of svn:externals, the decision to put the
common code in the same repository as all the other projects is
subjective (though I would do it that way).

Remember, that when you define the svn:externals property to point at a
specific revision (so you can go back and build at any point confident
that you're getting extactly the same output) and ensure the target
external folder is read-only (not committable by most people).

Good luck
--
David


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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


Re: Re: concerning repository storage type

Posted by Andy Levy <an...@gmail.com>.
On 10/22/07, Bicking, David (HHoldings, IT)
<Da...@thehartford.com> wrote:
>
> > -----Original Message-----
> > From: Andy Levy [mailto:andy.levy@gmail.com]
> >
> > On 10/22/07, nav@ciklum.net <na...@ciklum.net> wrote:
> > > Thanks!
> > > But here is one more question:
> > >
> > > there are actually several sites we're going to work on, and these
> > > sites use some common components.
> > > Website1 = Solution1 = Project1 + Project2
> > > Website2 = Solution 2 = Project3 + Project2
> > >
>
> <snip>
>
> >
> > Symlinks don't work on Windows, so that might pose a problem.
> > Use svn:externals to pull Project2 into the other projects.
> >
> > svnlook changed in your post-commit will show you what's been changed.
> > Parse the paths and take the appropriate action based on
> > what's changed.
> >
> <snip>
>
> >
> > SVN looks for .bat, .cmd and .exe files when executing hooks.
> >
> > Do you really want to do an export each time? Depending upon
> > the size of the project, that could take a while. Make each
> > site under wwwroot a working copy, then you can update with a
> > much-faster svn update.
> >
>
> For development, I'd do what you suggest, Andy.  When it comes time for
> "production deployment", I'd have some kind of managable process.

Oh, absolutely. I wish I could even have an auto-deploy for my
development environments, but our promotion process has to be really
strictly controlled at every step of the way thanks to SOX controls.

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

RE: Re: concerning repository storage type

Posted by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>.
> -----Original Message-----
> From: Andy Levy [mailto:andy.levy@gmail.com] 
> 
> On 10/22/07, nav@ciklum.net <na...@ciklum.net> wrote:
> > Thanks!
> > But here is one more question:
> >
> > there are actually several sites we're going to work on, and these 
> > sites use some common components.
> > Website1 = Solution1 = Project1 + Project2
> > Website2 = Solution 2 = Project3 + Project2
> >

<snip>

> 
> Symlinks don't work on Windows, so that might pose a problem. 
> Use svn:externals to pull Project2 into the other projects.
> 
> svnlook changed in your post-commit will show you what's been changed.
> Parse the paths and take the appropriate action based on 
> what's changed.
> 
<snip>

> 
> SVN looks for .bat, .cmd and .exe files when executing hooks.
> 
> Do you really want to do an export each time? Depending upon 
> the size of the project, that could take a while. Make each 
> site under wwwroot a working copy, then you can update with a 
> much-faster svn update.
> 

For development, I'd do what you suggest, Andy.  When it comes time for
"production deployment", I'd have some kind of managable process.  Also,
for ASP.NET projects, I set a virtual folder that points to my workspace
(per Microsoft's best practices).  This ensures that all the source goes
into the same place on the local drive.

I'm building a pre-commit "script" in C# as a DLL project, and calling
it from a BAT file.  This works well, though I'd rather be learning
Python ;)

If your company is willing to permit the software, Perl and Python both
work in Windows, so some of the scripts are therefore cross-platform.

--
David


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************

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


Re: error 405 - no hint why

Posted by sv...@mobsol.be.
Quoting nav@ciklum.net:

> Hi all,
>
> i've created repository inside c:\svn\reposit (that is defined as parent
> path in apache config),
> cd c:\svn\reposit
> svnadmin create websites
>
> Something like this used to work a week ago. Now it doesn't:
> I have password protection for some operations, but not for PROPFIND, so it
> SHOULD work (anyway, i know the password and I'd enter it if needed)...
>
> When I try to import new folder into this empty repository, I get:
>
> Error: PROPFIND request failed on '/websites'
> Error: PROPFIND of '/websites': 405 Method Not Allowed
> (http://192.168.224.3:8080)
>
> Both comps are in the same workgroup, OS is Windows 2003
>
> http://192.168.224.3:8080 link works ok in browser

A "405 Method Not Allowed" error can mean that a directory you're willing to
create during the import already exists in the repository.

Alternatively it might mean that you're using a proxy server which doesn't
support custom WebDAV methods like PROPFIND.

Anyway, as Erik already suggested, more info from your side is needed.

Lieven

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

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

Re: error 405 - no hint why

Posted by Blair Zajac <bl...@orcaware.com>.
Hi Alex,

Please don't reply to existing threads, see here for why:

http://subversion.tigris.org/mailing-list-guidelines.html#fresh-post

Regards,
Blair

-- 
Blair Zajac, Ph.D.
<bl...@orcaware.com>
Subversion training, consulting and support
http://www.orcaware.com/svn/

nav@ciklum.net wrote:
> Hi all,
> 
> i've created repository inside c:\svn\reposit (that is defined as parent 
> path in apache config),
> cd c:\svn\reposit
> svnadmin create websites
> 
> Something like this used to work a week ago. Now it doesn't:
> I have password protection for some operations, but not for PROPFIND, so 
> it SHOULD work (anyway, i know the password and I'd enter it if needed)...
> 
> When I try to import new folder into this empty repository, I get:
> 
> Error: PROPFIND request failed on '/websites'
> Error: PROPFIND of '/websites': 405 Method Not Allowed 
> (http://192.168.224.3:8080)
> 
> Both comps are in the same workgroup, OS is Windows 2003
> 
> http://192.168.224.3:8080 link works ok in browser
> 
> What could cause such error?? I'm in despair!
> 
> Thanks.
> Alexander.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 

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

Re: error 405 - no hint why

Posted by Erik Huelsmann <eh...@gmail.com>.
On 10/22/07, nav@ciklum.net <na...@ciklum.net> wrote:
> Hi all,
>
> i've created repository inside c:\svn\reposit (that is defined as parent
> path in apache config),
> cd c:\svn\reposit
> svnadmin create websites
>
> Something like this used to work a week ago. Now it doesn't:
> I have password protection for some operations, but not for PROPFIND, so it
> SHOULD work (anyway, i know the password and I'd enter it if needed)...
>
> When I try to import new folder into this empty repository, I get:
>
> Error: PROPFIND request failed on '/websites'
> Error: PROPFIND of '/websites': 405 Method Not Allowed
> (http://192.168.224.3:8080)
>
> Both comps are in the same workgroup, OS is Windows 2003
>
> http://192.168.224.3:8080 link works ok in browser
>
> What could cause such error?? I'm in despair!

- What changed? (update of apache? update of authz file? update of Subversion?)
- What OS?
- What's in the error_log?
- Which authz method are you using?

IOW: we need more info about what you're looking at. Unfortunately, we
can't help you if you don't exactly tell us what happens before, while
and after you see this error, what your config is, etc.

bye,

Erik.

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

error 405 - no hint why

Posted by na...@ciklum.net.
Hi all,

i've created repository inside c:\svn\reposit (that is defined as parent 
path in apache config),
cd c:\svn\reposit
svnadmin create websites

Something like this used to work a week ago. Now it doesn't:
I have password protection for some operations, but not for PROPFIND, so it 
SHOULD work (anyway, i know the password and I'd enter it if needed)...

When I try to import new folder into this empty repository, I get:

Error: PROPFIND request failed on '/websites'
Error: PROPFIND of '/websites': 405 Method Not Allowed 
(http://192.168.224.3:8080)

Both comps are in the same workgroup, OS is Windows 2003

http://192.168.224.3:8080 link works ok in browser

What could cause such error?? I'm in despair!

Thanks.
Alexander.

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

Re: concerning repository storage type

Posted by Andy Levy <an...@gmail.com>.
On 10/22/07, nav@ciklum.net <na...@ciklum.net> wrote:
> Thanks!
> But here is one more question:
>
> there are actually several sites we're going to work on, and these sites use
> some common components.
> Website1 = Solution1 = Project1 + Project2
> Website2 = Solution 2 = Project3 + Project2
>
> here Project2 is some common classes
>
> Taking this into consideration, it looks like both sites should reside in
> the same repository:
> Repository:
> Project1,
> Project2,
> Project3
>
> Of course, every site should be placed in its own folder, so - how should I
> manage this, indeed there's 1 post-commit per 1 repository!
> Maybe post-commit should make some parsing of input parameter??
> Or I should make something like symbolic link to Project2 inside both
> Solution1 and Solution2?

Symlinks don't work on Windows, so that might pose a problem. Use
svn:externals to pull Project2 into the other projects.

svnlook changed in your post-commit will show you what's been changed.
Parse the paths and take the appropriate action based on what's
changed.

> Btw, my OS is Windows 2003 and I work with apache.
> And most examples of hook scripts are shown for UNIX :( So i haven't got
> clear idea - should I have post-commit.bat inside hooks folder?
> And it should look something like 'svn export <REPOS-PATH for websiteN>
> c:\inetpub\wwwroot\websiteN\'

SVN looks for .bat, .cmd and .exe files when executing hooks.

Do you really want to do an export each time? Depending upon the size
of the project, that could take a while. Make each site under wwwroot
a working copy, then you can update with a much-faster svn update.

> ----- Original Message -----
> From: "Andy Levy" <an...@gmail.com>
> To: <na...@ciklum.net>
> Cc: <us...@subversion.tigris.org>
> Sent: Friday, October 19, 2007 6:33 PM
> Subject: Re: concerning repository storage type
>
>
> > On 10/19/07, nav@ciklum.net <na...@ciklum.net> wrote:
> >>
> >>
> >> Hi,
> >>
> >> i just realized, that i am lost in SVN repository type choice...
> >>
> >> Me and other team member make ASP.NET web site. I've created repository
> >> on
> >> development server and we use it to work simulteneously.
> >> BUT naturally I also need to use this remote storage as virtual folder
> >> (for
> >> IIS) to run the testing site...>> Does it mean that when creating
> >> repository, I need to indicate file storage
> >> type (not Berkeley), otherwise I will just have my files inside DB and
> >> won't
> >> be able to run anything...?
> >> What in common is a sense of using DB then?
> >
> > FSFS doesn't allow you to see the files directly either (it's still a
> > database). You shouldn't be serving a website/app out of your
> > repository, either check out or export a copy to your IIS docroot and
> > keep that updated.
> >
> > A very similar question is answered in the SVN FAQ. See
> > http://subversion.tigris.org/faq.html#website-auto-update
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
> >
> >
>
>

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

Re: concerning repository storage type

Posted by na...@ciklum.net.
Thanks!
But here is one more question:

there are actually several sites we're going to work on, and these sites use 
some common components.
Website1 = Solution1 = Project1 + Project2
Website2 = Solution 2 = Project3 + Project2

here Project2 is some common classes

Taking this into consideration, it looks like both sites should reside in 
the same repository:
Repository:
Project1,
Project2,
Project3

Of course, every site should be placed in its own folder, so - how should I 
manage this, indeed there's 1 post-commit per 1 repository!
Maybe post-commit should make some parsing of input parameter??
Or I should make something like symbolic link to Project2 inside both 
Solution1 and Solution2?

Btw, my OS is Windows 2003 and I work with apache.
And most examples of hook scripts are shown for UNIX :( So i haven't got 
clear idea - should I have post-commit.bat inside hooks folder?
And it should look something like 'svn export <REPOS-PATH for websiteN> 
c:\inetpub\wwwroot\websiteN\'

----- Original Message ----- 
From: "Andy Levy" <an...@gmail.com>
To: <na...@ciklum.net>
Cc: <us...@subversion.tigris.org>
Sent: Friday, October 19, 2007 6:33 PM
Subject: Re: concerning repository storage type


> On 10/19/07, nav@ciklum.net <na...@ciklum.net> wrote:
>>
>>
>> Hi,
>>
>> i just realized, that i am lost in SVN repository type choice...
>>
>> Me and other team member make ASP.NET web site. I've created repository 
>> on
>> development server and we use it to work simulteneously.
>> BUT naturally I also need to use this remote storage as virtual folder 
>> (for
>> IIS) to run the testing site...>> Does it mean that when creating 
>> repository, I need to indicate file storage
>> type (not Berkeley), otherwise I will just have my files inside DB and 
>> won't
>> be able to run anything...?
>> What in common is a sense of using DB then?
>
> FSFS doesn't allow you to see the files directly either (it's still a
> database). You shouldn't be serving a website/app out of your
> repository, either check out or export a copy to your IIS docroot and
> keep that updated.
>
> A very similar question is answered in the SVN FAQ. See
> http://subversion.tigris.org/faq.html#website-auto-update
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
> 

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

Re: concerning repository storage type

Posted by Andy Levy <an...@gmail.com>.
On 10/19/07, nav@ciklum.net <na...@ciklum.net> wrote:
>
>
> Hi,
>
> i just realized, that i am lost in SVN repository type choice...
>
> Me and other team member make ASP.NET web site. I've created repository on
> development server and we use it to work simulteneously.
> BUT naturally I also need to use this remote storage as virtual folder (for
> IIS) to run the testing site...
> Does it mean that when creating repository, I need to indicate file storage
> type (not Berkeley), otherwise I will just have my files inside DB and won't
> be able to run anything...?
> What in common is a sense of using DB then?

FSFS doesn't allow you to see the files directly either (it's still a
database). You shouldn't be serving a website/app out of your
repository, either check out or export a copy to your IIS docroot and
keep that updated.

A very similar question is answered in the SVN FAQ. See
http://subversion.tigris.org/faq.html#website-auto-update

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