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!
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!
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?
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.
Or you can use the "global-ignores" option in your SVN config (server side) to ignore certain files.
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"
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)
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.
Then you can use kdesvn. Thats more visual, so you can solve such situations easier.
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.
Because if I do the svn propedit before the svn add on my subfolder he say that he is not a working copy.
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.
Here is a good explanation of that: http://blog.bogojoker.com/2008/07/command-line-svnignore-a-file/
Hope that helps.
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.
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.
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.
ASKER
Yeah exactly.
I've tried your command, but I got this:
svn: invalid option: --depth=empty
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.
--depth was introduced in 1.5 i think.
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you very much! It works!
Have a look here: http://www.petefreitag.com/item/662.cfm