You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yanghui Bian <yb...@vitesse.com> on 2003/07/10 16:59:31 UTC

Revision control on a single file

Hello,
I want to keep track of several single files scattered around my disk.
e.g: windows autoexec.bat, emacs dot file and more ...
I cannot figure out a good way in SVN.
For .emacs file, I could just put the whole home directory to SVN
repository, though not so good.
But for autoexec.bat, it seems to be impossible as it is in window C:
directory.
Any hints? Thanks.

Regards,
Yanghui Bian


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


Re: Revision control on a single file

Posted by M <ma...@gmx.de>.
You could write a pre-svn.bat and post-svn.bat which
copy the scattered files to and from a svn-tree on your disk.

Greetings,
	M

Ben Collins-Sussman wrote:
> "Yanghui Bian" <yb...@vitesse.com> writes:
> 
> 
>>Hello,
>>I want to keep track of several single files scattered around my disk.
>>e.g: windows autoexec.bat, emacs dot file and more ...
>>I cannot figure out a good way in SVN.
>>For .emacs file, I could just put the whole home directory to SVN
>>repository, though not so good.
>>But for autoexec.bat, it seems to be impossible as it is in window C:
>>directory.
>>Any hints? Thanks.
> 
> 
> The smallest unit that svn can version is a tree.  SVN cannot version
> a lone file.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
> 
> 



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

Re: Revision control on a single file

Posted by kf...@collab.net.
Jack Repenning <jr...@collab.net> writes:
> Remember to keep the bats under SVN!

Indeed... I think that's the best slogan we've heard yet.

:-)

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

Re: Revision control on a single file

Posted by Jack Repenning <jr...@collab.net>.
At 12:06 PM -0500 7/10/03, Ben Collins-Sussman wrote:
>The smallest unit that svn can version is a tree.  SVN cannot version
>a lone file.

Well, you can selectively version only one file in a directory, which 
is *almost* the same as versioning a single file.

At 7:13 PM +0200 7/10/03, M wrote:
>You could write a pre-svn.bat and post-svn.bat which
>copy the scattered files to and from a svn-tree on your disk.

This is how I manage some similar stuff.  Remember to keep the bats under SVN!
-- 
-==-
Jack Repenning
CollabNet, Inc.
8000 Marina Boulevard, Suite 600
Brisbane, California 94005
o: 650.228.2562
c: 408.835-8090

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

Re: Revision control on a single file

Posted by Ben Collins-Sussman <su...@collab.net>.
"Yanghui Bian" <yb...@vitesse.com> writes:

> Hello,
> I want to keep track of several single files scattered around my disk.
> e.g: windows autoexec.bat, emacs dot file and more ...
> I cannot figure out a good way in SVN.
> For .emacs file, I could just put the whole home directory to SVN
> repository, though not so good.
> But for autoexec.bat, it seems to be impossible as it is in window C:
> directory.
> Any hints? Thanks.

The smallest unit that svn can version is a tree.  SVN cannot version
a lone file.


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

Re: Revision control on a single file

Posted by Paul L Lussier <pl...@lanminds.com>.
In a message dated: Thu, 10 Jul 2003 18:59:31 +0200
"Yanghui Bian" said:

>Hello,
>I want to keep track of several single files scattered around my disk.
>e.g: windows autoexec.bat, emacs dot file and more ...
>I cannot figure out a good way in SVN.
>For .emacs file, I could just put the whole home directory to SVN
>repository, though not so good.
>But for autoexec.bat, it seems to be impossible as it is in window C:
>directory.
>Any hints? Thanks.

Well, you could create a repo called 'config_files' or something.
Then, under there, have directories which a OS-related and 
OS-agnostic:

	/config_files/win
	/config_files/unix
	/config_files/mac
	/config_files/any

Place your .emacs file under 'any' and autoexec.bat under 'win32.
Then, depending upon what system you're on.

HTH,
	
-- 

Seeya,
Paul
--
Key fingerprint = 1660 FECC 5D21 D286 F853  E808 BB07 9239 53F1 28EE

	It may look like I'm just sitting here doing nothing,
   but I'm really actively waiting for all my problems to go away.

	 If you're not having fun, you're not doing it right!



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

RE: Revision control on a single file

Posted by Tim Hawkins <ti...@timhawkins.co.uk>.
I don't know if this would work, but it's worth a try

Windows 2000 and up have support for both links and mounts in the filesystem
(NTFS5), its just that there are no Userland tools for setting them up in
the standard distribution. There are some tools in the win2k Resource kit
for doing this but that costs money, and I found a tool called "Junction" on
sysinternals.com that does mounts and directory links. I have checked the
APR source and the Win32 Filesystem access code seems to handle them and
return them as APR_LNK's. A scan around the internet turned up several tools
for handling these <JUNCTIONS> or "reparse points" in widows termology. 

It may be possible to set up a directory of links to other files and
directories and version them. Note this is NOT the same as the shortcut
(.lnk) files that the shell uses, this is a filesystem level link mechanism.


How does subversion handle links in the wc on linux? 

Alternatively does anybody know if cygwin supports this?

-----Original Message-----
From: cmpilato@collab.net [mailto:cmpilato@collab.net] 
Sent: 10 July 2003 19:12
To: Yanghui Bian
Cc: dev@subversion.tigris.org
Subject: Re: Revision control on a single file

"Yanghui Bian" <yb...@vitesse.com> writes:

> Hello,
> I want to keep track of several single files scattered around my disk.
> e.g: windows autoexec.bat, emacs dot file and more ...
> I cannot figure out a good way in SVN.
> For .emacs file, I could just put the whole home directory to SVN
> repository, though not so good.
> But for autoexec.bat, it seems to be impossible as it is in window C:
> directory.
> Any hints? Thanks.

- Make an empty subversion repository somewhere.
- Check out that repos into some temporary place.
- Now move the .svn/ subdir out of that working copy into C:\.

Tada!  You C:\ is now under version control.

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



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


Re: Revision control on a single file

Posted by cm...@collab.net.
"Yanghui Bian" <yb...@vitesse.com> writes:

> Hello,
> I want to keep track of several single files scattered around my disk.
> e.g: windows autoexec.bat, emacs dot file and more ...
> I cannot figure out a good way in SVN.
> For .emacs file, I could just put the whole home directory to SVN
> repository, though not so good.
> But for autoexec.bat, it seems to be impossible as it is in window C:
> directory.
> Any hints? Thanks.

- Make an empty subversion repository somewhere.
- Check out that repos into some temporary place.
- Now move the .svn/ subdir out of that working copy into C:\.

Tada!  You C:\ is now under version control.

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