You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by IxokaI <ix...@gmail.com> on 2004/07/17 10:35:07 UTC

"Local" properties? svn:externals

Hello all.

I want to know if its possible to set a property, specifically
svn:externals, in my working copy and have it _not_ ever get sent to
the repository.

Let me describe my repository layout to explain why:

/trunk/env/Python/
    This is a Python installation. Its in the "env"ironment section
because it is part of the basis of what makes up the customer's
environment, along with plugins and SQL scripts that are also stored
in subdirectories of /trunk/env/.

/trunk/py/apt
    This is our primary Python source code, where most everything goes.

/site/(site-name)/
   Site/customer specific information goes here. Specifically of
interest is /site/(site-name)/config, which contains various key files
that configure the system. We very much want them in version control.

Our working copy would end up looking something like:

C:\Python\ <-- /trunk/env/Python
C:\Python\apt\ <-- /trunk/py/apt
C:\Python\apt\config\ <--- /site/(site-name)/config

That's easily do-able by just setting a couple svn:externals -- but
then everyone would get those.

Now, in reality we wont be serving sites from trunk, but from release
branches and such, but in development and testing we often need to
evaluate stuff like above. I'd like to locally constrct a working copy
to work on by setting some properties then somehow preventing them
from ever being committed.

Can this be done?

Thanks.

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

Re: "Local" properties? svn:externals

Posted by Bryan Donlan <bd...@gmail.com>.
On Sat, 17 Jul 2004 03:35:07 -0700, IxokaI <ix...@gmail.com> wrote:
> Hello all.
> 
> I want to know if its possible to set a property, specifically
> svn:externals, in my working copy and have it _not_ ever get sent to
> the repository.
> 
> Let me describe my repository layout to explain why:
> 
> /trunk/env/Python/
>     This is a Python installation. Its in the "env"ironment section
> because it is part of the basis of what makes up the customer's
> environment, along with plugins and SQL scripts that are also stored
> in subdirectories of /trunk/env/.
> 
> /trunk/py/apt
>     This is our primary Python source code, where most everything goes.
> 
> /site/(site-name)/
>    Site/customer specific information goes here. Specifically of
> interest is /site/(site-name)/config, which contains various key files
> that configure the system. We very much want them in version control.
> 
> Our working copy would end up looking something like:
> 
> C:\Python\ <-- /trunk/env/Python
> C:\Python\apt\ <-- /trunk/py/apt
> C:\Python\apt\config\ <--- /site/(site-name)/config
> 
> That's easily do-able by just setting a couple svn:externals -- but
> then everyone would get those.
> 
> Now, in reality we wont be serving sites from trunk, but from release
> branches and such, but in development and testing we often need to
> evaluate stuff like above. I'd like to locally constrct a working copy
> to work on by setting some properties then somehow preventing them
> from ever being committed.
> 
> Can this be done?

You could check out additional working copies as unversioned objects:
svn co (url)/trunk/env/Python
cd Python
svn co (url)/trunk/py/apt
cd apt
svn co (url)/site/(site-name)/config

You would have to update them seperately though:

cd c:\Python
svn up c:\Python c:\Python\apt c:\Python\apt\config

Or if there's a /trunk/env/Python/apt and /trunk/py/apt/config (either
empty or maybe with template data), you could use svn switch in there
to move it to a different URL in the same working copy.

svn co (url)/trunk/env/Python
cd Python\apt
svn switch (url)/trunk/py/apt
cd config
svn switch (url)/site/(site-name)/config

Then you can do commits and updates in one operation:
svn up c:\Python

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