You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Joachim Strömbergson <wa...@ludd.luth.se> on 2003/12/17 13:20:27 UTC

Ability to change/control .svn file name?

Aloha!

I'm an old CVS user that have decided to move forward and have therefore 
  just started to use Subversion. It all looks good and great elbeit it 
requires slightly more on the system than CVS (which since it's 
available by default in FreeBSD obviously doesn't need any extras which 
makes the comparison a wee bit unfair).

One thing I reacted to when starting to use Subversion is that the local 
adminstration directories in the working copy are called ".svn" instead 
of CVS. I would expect it to be "svn"-something (in possibly upper case 
letters).

What I'm not totally comfortable with is the use of a dot-file type of 
directory. Yes, I know I can use "ls -a" to see the directory and 
normally have an alias "ll" that among other things includes the "-a" 
flag. But I generally prefer important things to be visible. Missing a 
.svn-directory when creating a TAR-ball for example just because it was 
"hidden" thereby creating problems would not be very fun. Yes, it could 
easily be restored by checking out a new working copy from the repo, but 
the confusion-possibility still exists.

So, is there any way I can control the dirctory naming when installing 
Subversion/creating the repo or when checking out a working copy?

Is there any generally great pedagogical reason why the directory is 
hidden that I'm missing?
-- 
Med vänlig hälsning, Cheers!

Joachim Strömbergson
============================================================================
Joachim Strömbergson - ASIC designer, nice to *cute* animals.
     snail:                  phone:                     mail & web:
Sävenäsgatan 5A        +46 31 - 27 98 47          watchman@ludd.luth.se
416 72 Göteborg        +46 733 75 97 02           www.ludd.luth.se/~watchman
============================================================================


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Ability to change/control .svn file name?

Posted by kf...@collab.net.
kfogel@collab.net writes:
> The only way to control this is by patching your Subversion client.  I
> thought we had a FAQ for this, but apparently not.  Anyone want to
> make one? :-)

I'm making one (just in case anyone else was contemplating it).

-K

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Ability to change/control .svn file name?

Posted by kf...@collab.net.
Joachim Strömbergson <wa...@ludd.luth.se> writes:
> So, is there any way I can control the dirctory naming when installing
> Subversion/creating the repo or when checking out a working copy?

The only way to control this is by patching your Subversion client.  I
thought we had a FAQ for this, but apparently not.  Anyone want to
make one? :-)

It's a very easy patch, something like this:

Index: subversion/include/svn_wc.h
===================================================================
--- subversion/include/svn_wc.h	(revision 8027)
+++ subversion/include/svn_wc.h	(working copy)
@@ -668,7 +668,7 @@
  * against importing administrative subdirs, so now the name is a
  * matter of public record.
  */
-#define SVN_WC_ADM_DIR_NAME   ".svn"
+#define SVN_WC_ADM_DIR_NAME   "SVN"
 
 
 

> Is there any generally great pedagogical reason why the directory is
> hidden that I'm missing?

No, we basically took a vote.  But once it was decided, the client had
to enforce it, because otherwise different versions of Subversion
couldn't use the same working copy.

-Karl

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org