]> sipb.mit.edu Git - ikiwiki.git/commitdiff
response, and change setup instuctions for svn. The other rcses seem ok,
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 16 Jan 2007 03:22:56 +0000 (03:22 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 16 Jan 2007 03:22:56 +0000 (03:22 +0000)
although I also added some stuff for mercurual to actually add the files to
the repo..

doc/setup.mdwn
doc/setup/discussion.mdwn

index 116501768cd4235f24524068562e30f4db722fc1..48f63fa55d1855b28dd61ddd1d9a426f9cf76214 100644 (file)
@@ -101,9 +101,11 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
    [[toggleable id=subversion text="""
                        REPOSITORY=~/wikirepo
                        svnadmin create $REPOSITORY
-                       svn import $SRCDIR file://$REPOSITORY/trunk -m "initial import"
-                       rm -rf $SRCDIR
-                       svn co file://$REPOSITORY/trunk $SRCDIR
+                       svn mkdir file://$REPOSITORY/trunk -m "create trunk"
+                       cd $SRCDIR
+                       svn co file://$REPOSITORY/trunk .
+                       svn add *
+                       svn commit -m "initial import"
    """]]
    
    [[toggle id=git text="Git"]]
@@ -136,7 +138,11 @@ This tutorial will walk you through setting up a wiki with ikiwiki.
    [[toggle id=mercurial text="Mercurial"]]
    [[toggleable id=mercurial text="""
                        REPOSITORY=$SRCDIR
+                       rm -rf $SRCDIR/.ikiwiki # not for checkin
                        hg init $REPOSITORY
+                       cd $REPOSITORY
+                       hg add *
+                       hg commit -m "initial import"
    """]]
 
 9. Configure ikiwiki to use revision control.
index dc09f06342364bb4c9b4432a5636c1884d38b476..b2c2e7e72607b3ff9a5e988049eed97a6cc3f47e 100644 (file)
@@ -2,4 +2,9 @@ It isn't intended that .ikiwiki be versioned, is it? Do you have a svn:ignore se
 Is there some magic way you can make the svn commands (and presumably commands for 
 the other VCSs here) ignore the .ikiwiki directory during step 8, when they import it?
 If not, maybe a note should be made that the user should delete this file before 
-they import. --Ethan
\ No newline at end of file
+they import. --Ethan
+
+> No, .ikiwiki should not be versioned, and a svn:ignore of it is reasonable,
+> although probably too much noise for the setup instructions.
+> I've switched to a different method that preserves .ikiwiki, w/o checking
+> it in. --[[Joey]]