Skip to:
Content
Pages
Categories
Search
Top
Bottom

SVN procedure for checking out bbPress?


  • chrishajer
    Participant

    @chrishajer

    I too am getting tired of upgrading bbPress all the time and keeping track of my changes, that’s what version control software like svn is for. I was reading this post by SamBauers where he suggested to specerp that he should use svn for updating his live site. So, how does one do that?

    I’ve used svn on linux before, but it’s already been setup and I’ve just used it to checkout and commit. I need the nuts and bolts of how to set it up so that I can checkout and use the bbPress core (not plugin) repository. It sure would make changes a lot easier until things stabilize and bbPress is out of beta.

    Can someone please give me some pointers? Thank you.

Viewing 12 replies - 1 through 12 (of 12 total)

  • Sam Bauers
    Participant

    @sambauers

    What operating system?


    chrishajer
    Participant

    @chrishajer

    Sorry, Sam. I am Linux on the desktop and Linux on the webserver. I supposed I could just try it too. I guess the issue is that now that I’ve already install bbPress and updated it once, do I need to start with a new checked out version and make my changes manually to that?

    Thanks,

    Chris


    Sam Bauers
    Participant

    @sambauers

    I’m not sure what an SVN checkout over the top of an existing installation will do. Considering how clever SVN is, I’m guessing that it will just work and create a working SVN copy.

    Check the very helpful subversion book http://svnbook.red-bean.com/

    What I did was, followed this guide here:

    http://www.phileplanet.com/archives/2006/08/how-to-setup-ssh-on-windows-xp/

    Reference links:

    http://www.chiark.greenend.org.uk/~sgtatham/putty/wishlist/xp-wont-run.html

    http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

    http://www.chiark.greenend.org.uk/~sgtatham/putty/

    I login to my domain with START > RUN > CMD >

    plink mydomain.net

    -will give your user and ask for passphrase.. enter passphrase.. hit enter

    -it will give you server prompt thingy.. I type and hit enter: ls

    -will show you what’s on your domain’s root, then type and hit enter: cd public_html (which changes you to the public_html directory)

    -then I type and hit enter: ls

    (will show me everything in the public_html directory..)

    -then type and hit enter: cd forums (changes you to the forums directory folder)

    -then I type and hit enter: ls (shows me everything in forums/ folder)

    -then I run this line command:

    svn co http://svn.automattic.com/bbpress/trunk/ .

    Only thing is though, if you already have folders/files in there, you’ll have to delete everything EXCEPT the my-templates/, my-plugins/ .htaccess, any special plugin files outside the my-plugins folder, and config.php files. Before running the SVN CO line command..

    I also tried doing this:

    svn co http://svn.automattic.com/bbpress/trunk/ . –force

    Which should FORCE file overwrites within that directory, however, it won’t work on a svn checkout… Not sure why though, but.. if you follow basically what I said above, you should be ok… =/

    You should be good to go then… I hope this helps.. Good luck!

    spencerp

    If the above stuff worked for you, then all you have to do to update your bbPress installation(s) is, follow same directions to get you to that specific directory, which contains your forums..

    START>RUN>CMD>

    Type In: plink mydomain.net (make sure there’s a space between the word “plink” and your “domain.net” then hit enter)

    Type In: your passphrase (hit enter)

    The: ls

    The: cd whatever-directory-for-root (example: public_html)

    The: ls

    The: cd whatever-directory-for-forums

    The: ls

    Type: svn up (then hit enter)

    That should update whatever files in your bbPress forums directory. I use same way for doing my WP blogs too.. ;)

    spencerp

    So, does this eliminate the possibility of keeping your own code under version control? I keep all my stuff in my own svn repository I set up myself on one of my servers. Is anyone aware of a way to share a working copy across two repositories?

    Or maybe a better question is this: Does anyone update their site through SVN AND use SVN to back up their own local code? How do you approach this problem?


    chrishajer
    Participant

    @chrishajer

    You can have two developers (macwise and bbPress core team) working on the same code in different places. I think svn is smart enough to figure it out when you commit and svn up.

    Just to be sure, I’m starting fresh so I should bash this:

    mkdir forum

    cd /forum

    svn co http://svn.automattic.com/bbpress/trunk/ .

    Right? Did I miss anything?

    Edit: It was right. Thanks guys!

    “Just to be sure, I’m starting fresh so I should bash this:

    mkdir forum

    cd /forum

    svn co http://svn.automattic.com/bbpress/trunk/ .”

    ___________

    I just did that, it worked, but now what I have is a folder called “trunk” in my /forum/ folder. All the bbpress files are in /forum/trunk/ but I was hoping they would just be in /forum/. So I’m not sure what to do next.

    Sorry I’m entirely new to using svn….


    chrishajer
    Participant

    @chrishajer

    I think you left off the trailing “[space] dot” that indicates “put it in the current directory” or path. From the svn help:

    If PATH is omitted, the basename of the URL will be
    used as the destination.

     

    That means it creates “trunk” for you, which you don’t want.

    Just delete the trunk directory and cd into the forum directory again, and run this whole thing:

    svn co http://svn.automattic.com/bbpress/trunk/ .

    There is a / then a [space] then a period at the end there. That will put it into the current directory with no trunk directory being created.

    Ah yes, thanks Chris, missed the space and dot. Thanks again.


    _ck_
    Participant

    @_ck_

    By the way, for those on a linux server with shell and want to just install SVN as a client (and not the full blown server function) this is how you do it:

    wget http://subversion.tigris.org/downloads/subversion-1.6.5.tar.gz
    wget http://subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.gz

    tar -xzvf subversion-1.6.5.tar.gz
    tar -xzvf subversion-deps-1.6.5.tar.gz
    cd subversion-1.6.5

    ./configure --prefix=$HOME --without-berkeley-db --with-ssl --with-editor=/usr/bin/vim --without-apxs --without-apache
    make
    make install

    Then you are ready to use it via the command line svn

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.
Skip to toolbar