Link to home
Start Free TrialLog in
Avatar of Nargzul
Nargzul

asked on

Exception SVN

Hi!

I've created a SVN for some code I'm making.

This code makes some treatment to videos files, so when I program I don't want that all videos files present in subfolders are under supervision.

How can I do? I wish I can keep theses folders on SVN, but not the video content.

Thank you!
Avatar of d4011
d4011
Flag of Germany image

You can use the svn:ignore property.
Have a look here: http://www.petefreitag.com/item/662.cfm
Avatar of Nargzul
Nargzul

ASKER

Okay great
How must we put many folder?

svn propedit svn:ignore folder1/*
svn propedit svn:ignore folder2/*

Or something like
svn propedit svn:ignore folder1/*;folder2/*

Or other?
There is a -R switch telling SVN to operate recursive when using propset/edit.

Or you can use the "global-ignores" option in your SVN config (server side) to ignore certain files.
Avatar of Nargzul

ASKER

Forget my last question I was wrong.

How can I see if he will ignore theses files correctly? because in svn st, I still the videos files with a "A"
When he ignores the files, he will not show them when you ask him for status (svn status).
You cannot ignore files you have already added. The "A" means you have added them.
(The ignore only means that the client will leave them out when searching for files)  
Are you on a *nix system (client side) ?
Then you can use kdesvn. Thats more visual, so you can solve such situations easier.
Avatar of Nargzul

ASKER

But if I cannot ignore files I've already added, how can I do this?

Because if I do the svn propedit before the svn add on my subfolder he say that he is not a working copy.
Avatar of Nargzul

ASKER

Yes It's an Ubuntu server, so I cannot use things that uses a grapical interface
You must tell the folder (containing the files to ignore) that he should ingore certain files.
Here is a good explanation of that: http://blog.bogojoker.com/2008/07/command-line-svnignore-a-file/
Hope that helps.
Avatar of Nargzul

ASKER

I think you don't understand the problem. so an exemple.

folder1 contains 5 videos

if I try to do svn propedit svn:ignore folder1

It says me this isn't already a working copy(and this is right!)

So if I do a svn add
Then I can do the svn propedit, but the videos files are already added to my project and no more ignored.
Ok, i think i got it.

Here is the way to add a folder, but not it contents:
svn add --depth=empty <folder>

files in the <folder> will still be unversioned.
Then you can ignore them.
Avatar of Nargzul

ASKER

Yeah exactly.

I've tried your command, but I got this:

svn: invalid option: --depth=empty
What SVN version do you have?

--depth was introduced in 1.5 i think.
Avatar of Nargzul

ASKER

svn --version
svn, version 1.4.6 (r28521)

And I think it's the same on the server.

It's the last version available by depot
ASKER CERTIFIED SOLUTION
Avatar of d4011
d4011
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Nargzul

ASKER

Thank you very much! It works!