IDEA, subversion, svn command line client, and the $Id$ property
IDEA uses SVNKit for its subversion support.
First, SVNKit claims to offer command line support. And a web search that I did found examples of sample commands (e.g. it looks like jsvn is the command line command to use, not svn).
But where is this jsvn command? I open a dos shell on my win xp sp3 box, and neither jsvn nor svn is recognized as a valid command name. Doing a search for jsvn or svn on my C: drive finds nothing. Does IDEA just give you partial implementation of SVNKit (i.e. they delete out stuff that they do not think that you will need, such as the jsvn command)?
Second, in IDEA 7.0.3, if you goto
File --> Settings --> File Templates --> Includes --> File Header
my boss wants me to use text that includes the line
// SVN Info: \$Id$
Allegedly, that $Id$ is supposed to be expanded when I check in a file into some meaningful ID. But it does not work for me; I am simply left with the unexpanded text $Id$ in my checked in files.
Doing some more web searching, it looks like plenty of other people have also encountered this issue:
They describe the relevant config information being stored either in a “$HOME/.subversion/config” file (unix) or in the "registry under the key HKEY_CURRENT_USER\Software\Tigris.org\Subversion\Config" (for windoze; see last url above).
Unfortunately, no such config file or registry location appears to be present on my machine.
What gives?!
Finally, if anyone has any advice to give regarding getting $Id$ expansion to work, lemme know that too.
Edited by: captainmidnight on Jul 19, 2008 12:46 AM
Please sign in to leave a comment.
Hello captainmidnight,
Yes, that's basically right. Our usage of SVNKit is essentially an implementation
detail, and we don't claim anywhere that we provide full SVNKit functionality.
We don't currently plan to include any additional SVNKit components in IDEA
distribution.
The configuration is stored under Documents and Settings\USERNAME\Application
Data\Subversion on Windows XP (or a corresponding path on Vista).
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
If you want a command line Subversion client Collabnet offers binaries for multiple platforms (soul-sucking registration required):
http://www.collab.net/downloads/subversion/
Hello Michael,
http://www.bugmenot.com/ helps you avoid the soul sucking. :)
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
I actually just read about that site a couple of weeks ago but forgot about it...will have to check it out!
Indeed it is, that did the trick.
Oddly, stupid windoze does not return that file or parent folder when I search for them (i.e. I did a search for everything underneath C: that was either config or subversion). This i strange, because I CAN see them if I manually navigate to that path...
Thanks much for your help.
this might be because ApplicationData is usually a "hidden" directory