From ae404a061bab95c37a3b1c822beb674f45c5535e Mon Sep 17 00:00:00 2001 From: David Beitey Date: Wed, 25 Jul 2012 22:26:53 +1000 Subject: [PATCH] Rewording and replacing references to SVN with Git --- CHEROKEE_WEB-server.py | 2 +- Commits.py | 2 +- PageSVN.py => PageGit.py | 6 +++--- static/html/Git.html | 20 ++++++++++++++++++++ static/html/SVN.html | 28 ---------------------------- 5 files changed, 25 insertions(+), 33 deletions(-) rename PageSVN.py => PageGit.py (92%) create mode 100644 static/html/Git.html delete mode 100644 static/html/SVN.html diff --git a/CHEROKEE_WEB-server.py b/CHEROKEE_WEB-server.py index 89f6739..8bc2671 100644 --- a/CHEROKEE_WEB-server.py +++ b/CHEROKEE_WEB-server.py @@ -31,7 +31,7 @@ import PageIndex import PageDownload import PageDownloadIndex -import PageSVN +import PageGit import PageDistro import PageDoc import PageCommunity diff --git a/Commits.py b/Commits.py index 8898415..7bad10a 100644 --- a/Commits.py +++ b/Commits.py @@ -47,7 +47,7 @@ def get_commit_list (num): # Update run ('git pull') - # Query SVN server + # Query Git repository cont = run ('git log --branches --pretty=format:"%an||%ar||%s||%H" -'+str(num)) # Parse diff --git a/PageSVN.py b/PageGit.py similarity index 92% rename from PageSVN.py rename to PageGit.py index 8c47865..0babbed 100644 --- a/PageSVN.py +++ b/PageGit.py @@ -26,12 +26,12 @@ import CTK import Page -class SVN: - FILE = "static/html/SVN.html" +class Git: + FILE = "static/html/Git.html" def __call__ (self): page = Page.Page_Menu() page += CTK.RawHTML(open(self.FILE,'r').read()) return CTK.HTTP_Cacheable (60, body=page.Render()) -CTK.publish ('^/svn(\.html)?$', SVN) +CTK.publish ('^/git(\.html)?$', Git) diff --git a/static/html/Git.html b/static/html/Git.html new file mode 100644 index 0000000..0f05ebd --- /dev/null +++ b/static/html/Git.html @@ -0,0 +1,20 @@ +

Git repository

+

The Cherokee source code is available via Git on GitHub. Anyone can clone the source via Git, but only certain people have the ability to commit to the main repository. We openly encourage contributions via Pull Requests and patches!

+

Briefly, Git is a system tool used to store and maintain files and a history of their changes over time. The Cherokee source code and related files are housed at GitHub. You can read more about Git at git-scm.com

+ +

Browsing the sources

+

Though Git repositories are most commonly accessed using a special piece of software called a Git client, there is a web-based interface to view the repositories. Browsing the source tree gives you a great view into the current status of this project's code. You may also view the complete histories of any file in the repository.

+

If you'd like to browse the source via the web, visit http://github.com/cherokee/ and click into the relevant repository.

+ +

Obtaining (cloning) the source

+

To see the available modules, look throught the list for the Cherokee organization on GitHub at http://github.com/cherokee/. After clicking into a repository, GitHub will provide you with URLs to use with your Git client.

+

To take a copy of sources of a repository for the first time, use this command:

+
git clone --recursive git://github.com/cherokee/webserver.git cherokee
+

Updating the sources

+

To update your local repository, use this command within your local repository:

+
git pull
+ +

Ignoring directories or files

+

Git stores ignored files per-repository and per-directory. To edit the ignored files of the directory you are currently in, edit the

+
.gitignore
+

with your favorite editor. Within this file, record the names and patterns of the files you want to ignore, one file per line. Once you are done, commit your changes so the .gitignore file gets saved into the revision history. For more information on gitignore files, see its Manual page.

diff --git a/static/html/SVN.html b/static/html/SVN.html deleted file mode 100644 index ff12221..0000000 --- a/static/html/SVN.html +++ /dev/null @@ -1,28 +0,0 @@ -

Subversion repository

-

The Cherokee source code is available via SVN. Anyone can check out the sources via SVN, but only certain people have the ability to check in.

-

Briefly, SVN is a system tool used to store and maintain files and a history of their changes over time. The Cherokee source code and related files are kept on a SVN server at cherokee-project.com. More on SVN at subversion.tigris.org

- -

Browsing the sources

-

Though SVN repositories are most commonly accessed using a special piece of software called a SVN client, we also provide a web-based interface to view SVN repositories. Browsing the SVN tree gives you a great view into the current status of this project's code. You may also view the complete histories of any file in the repository.

-

If all you need is to browse the sources, you can go to http://svn.cherokee-project.com/

- -

Checking out the sources

-

To list the available modules, type:

-
svn list svn://svn.cherokee-project.com/
-

To check out the sources for the first time from the repository, use this command:

-
svn co svn://svn.cherokee-project.com/cherokee/trunk cherokee
-

Updating the sources

-

To update your sources every day, you use this command:

-
svn up cherokee
- -

Ignoring directories or files

-

Subversion stores ignored files per directory. To edit the ignored files of the directory you are currently in, do

-
svn propedit svn:ignore .
-

that will launch your editor, write there the names of the files you want to ignore, one file per line. Once you are done, do a commit so the ignored list file gets updated on the server.

-

You can also list the properties:

-
svn proplist .
- -

Write Access

-

If you have write access in the Cherokee SVN repository I assume you know how to use it properly. If not, read this book.

-

Subversion Commits Mailing List

-

We also have a mailing list set up that will notify you when new commits are made. Join cherokee-commits@cherokee-project.com by entering your email address at the subscription page. Then you'll know when to update.