Search in SVN Eclipse plugin - eclipse

I am using Subversive plugin for Eclipse to connect to SVN Code repository.
Our code base is so huge, that am finding it difficult to search for files.
I am not able to find files using Ctrl+F key also.
Is there anyway I can search for specific files in this plugin.
thanks in advance,
Regards,
PK

NO there is no search function in subversive (and not in svn either).
You can do a small workaround:
svn ls -R [YOUR_PROJECT_REPO_URL] > all_files.txt
will list all files in your repo into the file all_files.txt (Caution: This will take some time..maybe start it of friday and let it run through the weekend..). After retreiving the file you can just search via your favorite texteditor(or eclipse).
Sure this is just a workaround, and you can not update this textfile in shorter time, but if you do not rely on most current versions it is a workaround

Related

How to clear the eclipse .project files from maven project

After I import my maven project to eclipse, it created eclipse project files in my maven project. How do I clear them out?
After your comment "if I dont clean the project files, how to I hand it over to someone else? If they dont use eclipse would they be appreciate all those extra files unrelated to the project?" I have understood your need.
The best way to achieve it is to use a version control system (VCS) like git, svn etc. and add inside your project tree a special file call .[VCSofYourChoice]ignore. For example for git this file would be .gitignore for svn it would be .svnignore.
Once you created this file you add rules to exclude files or directories you don't want to share on your version control system of your choice. To find the syntax to use google it with keywords ".[VCSofYourChoice]ignore syntax".
Eclipse and eventually every IDE create specific files, in order to save project structure and other internals. Some of them prompt you to select in which folder you want to save these files, for example IntelliJ, but I am sure eclipse as well. So you every time you use and IDE and you import a project, some files are going to be generated. The cleanest way is to 1) select to save them in a folder not related with the actual project, and as it already suggested do not commit them and add them in an ignore list, on your VCS of choice (e.g git)

Automatically fill changelog.txt after each SVN commit in any IDE

After trying to search for some information about "Dynamic change of changelog.txt file with IDE", i found nothing that could help me to find the answer.
Imagine that I've made some changes in numerous files (PHP Environment) using Eclipse PHP or JetBrains PHPStorm 3+, and i want to commit them into svn repository. Is it possible to configure any of these IDEs to dynamically fill changelog.txt file in predefined format with informations (Date, SVN Comment, etc...) ?
Thanks in advance for any info which will point to the answer.
Not aware of any plugins that do this automatically, but you could write a script using command-line svn tools (svn utilities are installed by default on Linux; on Windows you can use CollabNet SVN or similar). You can pull the svn logs and redirect to changelog.txt in a format you desire.
You can also do this in python using pysvn module.

How to search for a file inside Eclipse CVS Repository without doing check out

I am eclipse CVS to checkout the Projects from a Repository location .
When i provided the path to the Eclipse CVS Repository it displayed a list of nearly 50 Projects (In Eclipse CVS Repository View )
I am searching for a Particualr java file , not sure in which project its present exactly , so my question is that , is it possible to search for a particular java file inside the Eclipse Respository without doing out the check out ??
I am using Windows 7 as Operating System and Eclipse 3.6 version .
Thanks .
[EDIT]
There is no way to "grep" a CVS repository remotely.
You will have to checkout the projects or ask a sysadmin to search for the file EasyOptions.java,v on the CVS server and tell you the path. The name of the project/CVS modules is part of that path.
If you're looking for a file in an official Eclipse project, you can use Google or grepcode.
To further narrow the search in Google, you can limit it by site:
site:eclipse.org filename

Disconnecting Sparse SVN Updates From Eclipse

I have previously written an eclipse feature that works with eclipse to
sparsely update directories from svn, and
delete directories from the working copy without deleting them from the repository.
In this way you can pick and chose which subsystems you wish to work with. This feature works with subclipse.
For example, the effect if executed as a command sequence would be:
# check out the libs folder but not its children
svn update --depth empty libs
# check out the libs I am interested in
svn update libs/lib1 libs/lib7
... <work on them> ...
# not interested in lib1 anymore
rm -rf libs/lib1
# update to let libs know that lib1 is no longer checked out
svn update libs
I have recently noticed that subversive is now able to handle updating from svn sparsely. My question is, aside from the command line or writing an eclipse feature as I have, is there a way to disconnect and delete a sparse update from the working copy without deleting from the svn repository through eclipse? Has anyone else dealt with this issue using subclipse, subversive or any other team provider?
I am currently testing with Indigo SR1.
Matt
You want to run:
svn up --set-depth=exclude lib1
In Subclipse you can do Team > Update to Version ... and then choose Exclude in the Depth drop-down and check the box to change the WC to the selected depth.
I personally prefer using depth=empty because then the folder still exists and it is easy later to change the folder depth back to infinity.

Diff directories with content in Netbeans

I duplicated some folder with project's config to a new project a few days ago and made there some modifications (project name, paths, etc).
After few days a source config dir has changed and I am wondering how to diff that folders in 2 projects to apply that changes in new project.
If I select source file and then new file and select diff option in Netbeans - it works. But is it possible to make in on whole folder ?
I was looking for folder compare in NetBeans too. I found http://kenai.com/projects/netbeans-dircomp/downloads. I'll try that in a little while...
NetBeans does not have that feature.
You could probably hack together a shell script that would do this, based on find, etc. This search for 'diff a directory tree' looks like it has some good answer.
I would recommend that you put your source code under some sort of source code control system like CVS, SVN or Mercurial.
You could use those tools to generate a diff of the original project's config between the date you made the copy and 'now'... and then apply that diff onto the copy of the project...
Or, you could apply some of the strategies described in CVS manual for handling third party sources. I think the same concepts are available for svn and mercurial.
A very old question, but Netbeans does have a CVS feature now.
Go to Tools>Plugins and find CVS and install.
After that it is very easy to right click a directory, go to tools, then apply diff patch. That will patch all files in the diff file in that directory. Simple and smooth.
And You Can Also Use The
Total Commander
to Compare the folder and all type off your files
Its amazing in this situation