MG-GIMP
Update of "cloning"
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 6b0fad119f6c6c298b0776a83aabe2ed330e4368
Page Name:cloning
Date: 2014-01-11 15:33:04
Original User: saul
Parent: f289463119dc9fa23fd153fecff31505c582c6e6
Content

This MG-GIMP plug-in is currently being maintained using Fossil source code manager. You can clone this repository, thus gaining direct access to all of the files in the plug-in (including the history of their development) using the following command:

    fossil clone http://anonymous@chiselapp.com/user/saulgoode/repository/mg-gimp/ mg-gimp.fossil

When prompted for a password, just hit RETURN. This will create a file named 'mg-gimp.fossil' in the current directory on your disk (you can name it something else if you wish, but I recommend that you use the .fossil extension).

You can browse your cloned repo by issuing the following command:

    fossil ui mg-gimp.fossil

This will open the repository in your webbrowser and present you with a user interface identical to the one you are viewing now, except that it will be your local copy and you will have the ability to change things as much as you like.

To actually access the scripts in the Fossil repo, create a directory to hold the scripts, change to that directory, and then run "fossil open /path/to/mg-gimp.fossil".

    mkdir work
    cd work
    fossil open ../mg-gimp.fossil

The directory will be populated with the latest versions of the files in the trunk branch of the repo. My MG-GIMP repository is organized such that it can be opened in the top-level mediagoblin directory and the files will populate the Mediagoblin instance in their appropriate location. (It also adds a hidden file named ".fslckout" but this should not hinder your Mediagoblin deployment, and it is removed when you close the Fossil checkout).

The main branch of the repository is called 'trunk'. You can switch to a different branch by doing a "checkout" on it. For example:

    fossil checkout testing

After doing a checkout, only the files in the new branch will populate the directory. You can get a list of all of the branches in the repository with:

   fossil branch list

Exporting To GIT

You can export the MG-GIMP Fossil repository to GIT with the following steps:

  git init new-git-repo
  cd new-git-repo
  fossil export --git /path/to/mg-gimp.fossil | git fast-import

Of course, only the code files and their history are exported; GIT does not have any equivalent to the Fossil Wiki or Ticketing.