svn:externals - zend framework

6 messages Options
Embed this post
Permalink
Andries Seutens

svn:externals - zend framework

Reply Threaded More More options
Print post
Permalink

Dear all,

I am using some of Zend's libraries in several projects. To keep
everything up to date, I am *using* svn:externals as follows:

svn propedit svn:externals .
lib/ http://framework.zend.com/svn/framework/trunk/library

Turns out that this isn't possible, because any directory you specify for an svn:externals checkout should not already exist in the repository.
Apperently in my case, the folder lib already exist, and I'm using it to store other libraries.

So this leads to an svn error (because the libs folder already exist):

svn: Working copy 'libs' locked
svn: run 'svn cleanup' to remove locks

What I could do is:

svn propedit svn:externals .
lib/Zend http://framework.zend.com/svn/framework/trunk/library

but this will create a "Zend" folder, which in turn contains a "Zend" folder with the actual ZF libraries. I like to keep my files organized, so this solution
isn't really what I am looking for.

What I did now is:

svn propedit svn:externals .
lib/Zend http://framework.zend.com/svn/framework/trunk/library/Zend/

Again, this brings me a big con, because now I don't have the file "Zend.php" in my svn:externals.

Has anybody experienced the same problems? Or does anyone has a solution for this scenario?

Best,


--
Andries Seutens
http://andries.systray.be


Gecontroleerd op virussen door de JOJO Secure Gateway.
Pádraic Brady

Re: svn:externals - zend framework

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Hey Andries,

Unfortunately I couldn't figure out a solution either - I can't set an external path to a pre-existing versioned directory, so I'm using your second solution. In my case I went with two library directories - one for packaged libraries (i.e. specific to the application) and another (sub-directory) for sets of libraries exported using svn:externals or from some other centralised SVN repository I use for syncing with CVS versioned libraries. If nothing else it keeps a division between app and external libraries at the expense of an extra sub-directory to be added to the include_path.
 
Pádraic Brady
http://blog.astrumfutura.com
http://www.patternsforphp.com



----- Original Message ----
From: Andries Seutens <[hidden email]>
To: Zend Framework General <[hidden email]>
Sent: Friday, February 23, 2007 10:57:06 AM
Subject: [fw-general] svn:externals - zend framework


Dear all,

I am using some of Zend's libraries in several projects. To keep
everything up to date, I am *using* svn:externals as follows:

svn propedit svn:externals .
lib/ http://framework.zend.com/svn/framework/trunk/library

Turns out that this isn't possible, because any directory you specify for an svn:externals checkout should not already exist in the repository.
Apperently in my case, the folder lib already exist, and I'm using it to store other libraries.

So this leads to an svn error (because the libs folder already exist):

svn: Working copy 'libs' locked
svn: run 'svn cleanup' to remove locks

What I could do is:

svn propedit svn:externals .
lib/Zend http://framework.zend.com/svn/framework/trunk/library

but this will create a "Zend" folder, which in turn contains a "Zend" folder with the actual ZF libraries. I like to keep my files organized, so this solution
isn't really what I am looking for.

What I did now is:

svn propedit svn:externals .
lib/Zend http://framework.zend.com/svn/framework/trunk/library/Zend/

Again, this brings me a big con, because now I don't have the file "Zend.php" in my svn:externals.

Has anybody experienced the same problems? Or does anyone has a solution for this scenario?

Best,


--
Andries Seutens
http://andries.systray.be

Gecontroleerd op virussen door de JOJO Secure Gateway.



TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.
Simon Mundy

Re: svn:externals - zend framework

Reply Threaded More More options
Print post
Permalink
In reply to this post by Andries Seutens
Hi Andries

I have the following setup, whereby I specify a unique folder for the  
ZF framework in each app. It could live in a global location, but I  
have learned that a version for each site I build is not too  
expensive (maintenance-wise) as with the svn:externals I can keep  
pretty tight control of what I do/don't need. It looks like:

/application/controllers
             /models
/document_root (contains all public files and bootstrap index.php)
/framework (only ZF - has a svn:externals prop of
             library -r3590 http://framework.zend.com/svn/framework/ 
trunk/library and
             incubator -r3590 http://framework.zend.com/svn/framework/ 
trunk/incubator)
/library (all my own libraries PLUS any Zend classes I need to patch  
before official patches are applied)

I use the -r flag to specify a revision number just in case something  
dramatically changes in the daily builds so I don't get nasty surprises!

Then I set my include path from the bootstrap /document_root/
index.php as

set_include_path(realpath('../application/models' . PATH_SEPARATOR
                  realpath('../framework/incubator/library' .  
PATH_SEPARATOR
                  realpath('../framework/library' . PATH_SEPARATOR
                  realpath('../library' . PATH_SEPARATOR
                  get_include_path());

So in order of prefs it looks for my models first, then my standard  
libraries, then incubator ZF files, released ZF files and finally the  
default include paths.

Hope this helps

>
> Dear all,
>
> I am using some of Zend's libraries in several projects. To keep  
> everything up to date, I am *using* svn:externals as follows:
>
> svn propedit svn:externals .
> lib/ http://framework.zend.com/svn/framework/trunk/library
>
> Turns out that this isn't possible, because any directory you  
> specify for an svn:externals checkout should not already exist in  
> the repository. Apperently in my case, the folder lib already  
> exist, and I'm using it to store other libraries.
>
> So this leads to an svn error (because the libs folder already exist):
>
> svn: Working copy 'libs' locked
> svn: run 'svn cleanup' to remove locks
>
> What I could do is:
>
> svn propedit svn:externals .
> lib/Zend http://framework.zend.com/svn/framework/trunk/library
>
> but this will create a "Zend" folder, which in turn contains a  
> "Zend" folder with the actual ZF libraries. I like to keep my files  
> organized, so this solution
> isn't really what I am looking for.
>
> What I did now is:
>
> svn propedit svn:externals .
> lib/Zend http://framework.zend.com/svn/framework/trunk/library/Zend/
>
> Again, this brings me a big con, because now I don't have the file  
> "Zend.php" in my svn:externals.
>
> Has anybody experienced the same problems? Or does anyone has a  
> solution for this scenario?
>
> Best,
>
>
> --
> Andries Seutens
> http://andries.systray.be
>
> Gecontroleerd op virussen door de JOJO Secure Gateway.

--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "
202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
4124
http://www.peptolab.com


Ramon de la Fuente

Re: svn:externals - zend framework

Reply Threaded More More options
Print post
Permalink
In reply to this post by Andries Seutens
Hi Andries,

I currently import the Zend_Framework completely from SVN to it's own
directory, and add the path to the "Zend_Framework/library" folder to
php_path with a .htaccess directive. This means I maintain only 1
framework folder for all projects, and leaves me free to add a 'lib'
folder to projects with project-specific libraries. (it also leaves room
to include incubator classes by adding the incubator/library to the path
as well).

After a projects goes live and everything moves to a live webserver, all
I have to do is upload the current (at that time) Zend folder and
Zend.php file into the "lib" directory inside the project.

Cheers,

Ramon


Andries Seutens wrote:

>
> Dear all,
>
> I am using some of Zend's libraries in several projects. To keep
> everything up to date, I am *using* svn:externals as follows:
>
> svn propedit svn:externals .
> lib/ http://framework.zend.com/svn/framework/trunk/library
>
> Turns out that this isn't possible, because any directory you specify
> for an svn:externals checkout should not already exist in the
> repository. Apperently in my case, the folder lib already exist, and
> I'm using it to store other libraries.
>
> So this leads to an svn error (because the libs folder already exist):
>
> svn: Working copy 'libs' locked
> svn: run 'svn cleanup' to remove locks
>
> What I could do is:
>
> svn propedit svn:externals .
> lib/Zend http://framework.zend.com/svn/framework/trunk/library
>
> but this will create a "Zend" folder, which in turn contains a "Zend"
> folder with the actual ZF libraries. I like to keep my files
> organized, so this solution
> isn't really what I am looking for.
>
> What I did now is:
>
> svn propedit svn:externals .
> lib/Zend http://framework.zend.com/svn/framework/trunk/library/Zend/
>
> Again, this brings me a big con, because now I don't have the file
> "Zend.php" in my svn:externals.
>
> Has anybody experienced the same problems? Or does anyone has a
> solution for this scenario?
>
> Best,
>
>
> ------------------------------------------------------------------------
>
> Gecontroleerd op virussen door de JOJO Secure Gateway.
>  


Dready

Re: svn:externals - zend framework

Reply Threaded More More options
Print post
Permalink
Hi Andries!

Since we not only use ZF, we had similar Problems.

Our approach is not really a solution for that, we just figured there
is no other way in handling this.

Therefore our structure looks like this:
/http: www_document_root
/lib/php: here are the externals and the project
/lib/php/Zend: links to a tagged version of the Zend/library (not incubator)
/lib/php/OwnFramework: links to a tag of our own framework (which held
only a configuration setup for our system)
/lib/php/Smarty
...
/lib/php/ProjectName: here is the application with its specific classes.

We use only tagged version for our projects because we don't recheck
everytime something has changed somewhere, the projects have to be
stable.


For our project setup we have some scripts autogenerating the correct
paths for apache so we don't have to do much handwork.

bests, thomas


On 2/23/07, Ramon de la Fuente <[hidden email]> wrote:

> Hi Andries,
>
> I currently import the Zend_Framework completely from SVN to it's own
> directory, and add the path to the "Zend_Framework/library" folder to
> php_path with a .htaccess directive. This means I maintain only 1
> framework folder for all projects, and leaves me free to add a 'lib'
> folder to projects with project-specific libraries. (it also leaves room
> to include incubator classes by adding the incubator/library to the path
> as well).
>
> After a projects goes live and everything moves to a live webserver, all
> I have to do is upload the current (at that time) Zend folder and
> Zend.php file into the "lib" directory inside the project.
>
> Cheers,
>
> Ramon
>
>
> Andries Seutens wrote:
> >
> > Dear all,
> >
> > I am using some of Zend's libraries in several projects. To keep
> > everything up to date, I am *using* svn:externals as follows:
> >
> > svn propedit svn:externals .
> > lib/ http://framework.zend.com/svn/framework/trunk/library
> >
> > Turns out that this isn't possible, because any directory you specify
> > for an svn:externals checkout should not already exist in the
> > repository. Apperently in my case, the folder lib already exist, and
> > I'm using it to store other libraries.
> >
> > So this leads to an svn error (because the libs folder already exist):
> >
> > svn: Working copy 'libs' locked
> > svn: run 'svn cleanup' to remove locks
> >
> > What I could do is:
> >
> > svn propedit svn:externals .
> > lib/Zend http://framework.zend.com/svn/framework/trunk/library
> >
> > but this will create a "Zend" folder, which in turn contains a "Zend"
> > folder with the actual ZF libraries. I like to keep my files
> > organized, so this solution
> > isn't really what I am looking for.
> >
> > What I did now is:
> >
> > svn propedit svn:externals .
> > lib/Zend http://framework.zend.com/svn/framework/trunk/library/Zend/
> >
> > Again, this brings me a big con, because now I don't have the file
> > "Zend.php" in my svn:externals.
> >
> > Has anybody experienced the same problems? Or does anyone has a
> > solution for this scenario?
> >
> > Best,
> >
> >
> > ------------------------------------------------------------------------
> >
> > Gecontroleerd op virussen door de JOJO Secure Gateway.
> >
>
>
>


--
"Power corrupts. Power failure corrupts absolutely"
Darby Felton

Re: svn:externals - zend framework

Reply Threaded More More options
Print post
Permalink
In reply to this post by Andries Seutens
Hi Andries (et al),

I have filed the following JIRA issue to track the problem:

http://framework.zend.com/issues/browse/ZF-958

Thanks for the report!

Best regards,
Darby

Andries Seutens wrote:

>
> Dear all,
>
> I am using some of Zend's libraries in several projects. To keep
> everything up to date, I am *using* svn:externals as follows:
>
> svn propedit svn:externals .
> lib/ http://framework.zend.com/svn/framework/trunk/library
>
> Turns out that this isn't possible, because any directory you specify
> for an svn:externals checkout should not already exist in the
> repository. Apperently in my case, the folder lib already exist, and I'm
> using it to store other libraries.
>
> So this leads to an svn error (because the libs folder already exist):
>
> svn: Working copy 'libs' locked
> svn: run 'svn cleanup' to remove locks
>
> What I could do is:
>
> svn propedit svn:externals .
> lib/Zend http://framework.zend.com/svn/framework/trunk/library
>
> but this will create a "Zend" folder, which in turn contains a "Zend"
> folder with the actual ZF libraries. I like to keep my files organized,
> so this solution
> isn't really what I am looking for.
>
> What I did now is:
>
> svn propedit svn:externals .
> lib/Zend http://framework.zend.com/svn/framework/trunk/library/Zend/
>
> Again, this brings me a big con, because now I don't have the file
> "Zend.php" in my svn:externals.
>
> Has anybody experienced the same problems? Or does anyone has a solution
> for this scenario?
>
> Best,
>
>
>
> ------------------------------------------------------------------------
>
> Gecontroleerd op virussen door de JOJO Secure Gateway.