[gccsdk] Checking in files with !SVN

Jan-Jaap van der Geer jjvdgeer at inbox.com
Thu Jan 12 16:02:14 PST 2012


"W P Blatchley" <w.blatchley at yahoo.com> wrote:

> Then I created a folder "c" and a file inside "Test" on my RISC
> OS machine, added the folder (svn add c) and added the file (dir
> c; svn add Test), and committed (svn ci). This all worked fine,
> except of course that in WebSVN, "Test" looks like a plain ASCII
> file, and not a .c file.

> So I did everything again, this time trying to do a single 'svn
> add' of "Test.c" from the root directory (containing the "c"
> folder), hoping that !SVN would do some filename translation, as
> I believe the CVS port does. But !SVN crashed at that point.

> Could someone tell me the right way to do what I'm trying to do
> please?

Don't try to create the "c" directory, it will just confuse things.

See here:

*wimpslot -min 8000k
*ram
*svnadmin create repos
*cdir workdir
*cdir workdir.c
*echo Test { > workdir.c.testfile }
*settype workdir.c.testfile fff
*svn co file:///ram:$/repos workdir
Checked out revision 0.
*svn add workdir/testfile.c
A         workdir/testfile.c
*svn ci workdir/testfile.c
Press R to return data, A to abort
Adding         workdir/testfile.c
Transmitting file data .
Committed revision 1.
*svn co file:///ram:$/repos workdir2
A    workdir2/testfile.c
Checked out revision 1.
*type workdir2.c.testfile
Test 

*svn list file:///ram:$/repos
testfile.c


Hope this helps.

Cheers,
Jan-Jaap




More information about the gcc mailing list