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

6 comments
Comment actions Permalink

Hello captainmidnight,

IDEA uses SVNKit for its subversion support.

First, SVNKit claims to offer [command line
support|http://svnkit.com/documentation.html#command-line-client].
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|http://www.nabble.com/command-line-client-to16524366.html#a1652436
6], 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)?


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.

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.


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!"


0
Comment actions Permalink

If you want a command line Subversion client Collabnet offers binaries for multiple platforms (soul-sucking registration required):

http://www.collab.net/downloads/subversion/

0
Comment actions Permalink

Hello Michael,

If you want a command line Subversion client Collabnet offers binaries
for multiple platforms (soul-sucking registration required):


http://www.bugmenot.com/ helps you avoid the soul sucking. :)

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

I actually just read about that site a couple of weeks ago but forgot about it...will have to check it out!

0
Comment actions Permalink

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.


If it is not a huge burden, would you consider adding the command line tools as well to your distribution?

The configuration is stored under Documents and Settings\USERNAME\Application
Data\Subversion on Windows XP (or a corresponding path on Vista).


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.

0
Comment actions Permalink

this might be because ApplicationData is usually a "hidden" directory

0

Please sign in to leave a comment.