wsgit:wsgit.git
8 years agoRe-added the static app. master
Will Kahn-Greene [Sat, 17 Apr 2010 19:37:02 +0000 (15:37 -0400)]
Re-added the static app.

This static app has the advantage of being able to serve static files
from the wsgit project resources directory.  In order to use it, you
have to additionally install the static module.

8 years agoFixed repo_summary; using old git-python api.
Will Kahn-Greene [Sat, 17 Apr 2010 17:25:54 +0000 (13:25 -0400)]
Fixed repo_summary; using old git-python api.

8 years agoFixed repo_tree page.
Will Kahn-Greene [Sat, 17 Apr 2010 15:20:28 +0000 (11:20 -0400)]
Fixed repo_tree page.

* switched to using traverse which returns a bunch of blogs/trees.

8 years agoFixed tabs to use the slug rather than the name.
Will Kahn-Greene [Sat, 17 Apr 2010 15:01:25 +0000 (11:01 -0400)]
Fixed tabs to use the slug rather than the name.

8 years agoFixed repo_commit so it worked with the new git-python.
Will Kahn-Greene [Sat, 17 Apr 2010 14:56:50 +0000 (10:56 -0400)]
Fixed repo_commit so it worked with the new git-python.

* had to write my own diff_stat code because that was dropped

8 years agoFirst stab at documenting personalizing and using with other wsgi apps.
Will Kahn-Greene [Sat, 17 Apr 2010 01:08:15 +0000 (21:08 -0400)]
First stab at documenting personalizing and using with other wsgi apps.

I'm not psyched about these additional documents, but personalizing is
a good first pass and I figured I'd check othermodules in even though
it's missing details.

8 years agoLots of changes to update wsgit to use git-python 2.0beta.
Will Kahn-Greene [Sat, 17 Apr 2010 01:06:22 +0000 (21:06 -0400)]
Lots of changes to update wsgit to use git-python 2.0beta.

* commit.id -> commit.sha
* tree.id -> tree.sha
* repo.commits -> repo.iter_commit
* committed_date is now an int (time since epoch)
* commit.diff() is different (still sorting this out)

8 years agoUpdated code and example to use Paste static.
Will Kahn-Greene [Sat, 17 Apr 2010 01:03:48 +0000 (21:03 -0400)]
Updated code and example to use Paste static.

8 years agoAdded license/copyright headers to all files.
Will Kahn-Greene [Sun, 4 Apr 2010 15:02:36 +0000 (11:02 -0400)]
Added license/copyright headers to all files.

8 years agoUpdated TODO list.
Will Kahn-Greene [Sun, 4 Apr 2010 02:42:40 +0000 (22:42 -0400)]
Updated TODO list.

8 years agoAdded sphinx docs.
Will Kahn-Greene [Sun, 4 Apr 2010 02:33:41 +0000 (22:33 -0400)]
Added sphinx docs.

* Tweaked AUTHORS, LICENSE and README so they slide into the manual
  documentation better.
* Created initial structure for a manual.

8 years agoDescriptions now appear on the repository summary page
Christopher Allan Webber [Sat, 20 Mar 2010 13:54:49 +0000 (08:54 -0500)]
Descriptions now appear on the repository summary page

8 years agoAdded myself to the AUTHORS list.
Will Kahn-Greene [Fri, 19 Mar 2010 16:18:16 +0000 (12:18 -0400)]
Added myself to the AUTHORS list.

8 years agoOnly list tags if they exist
Christopher Allan Webber [Fri, 19 Mar 2010 15:32:36 +0000 (10:32 -0500)]
Only list tags if they exist

8 years agoList tags on the summary page
Christopher Allan Webber [Fri, 19 Mar 2010 15:31:18 +0000 (10:31 -0500)]
List tags on the summary page

8 years agoAdded more icons; removed type column.
Will Kahn-Greene [Thu, 18 Mar 2010 20:29:08 +0000 (16:29 -0400)]
Added more icons; removed type column.

8 years agoURLgen-based raw file url generation.
Christopher Allan Webber [Mon, 8 Mar 2010 03:26:11 +0000 (21:26 -0600)]
URLgen-based raw file url generation.

This this fixes the potential ?id=foo?raw=foo bug.

8 years agoMerge remote branch 'willkg/master'
Christopher Allan Webber [Mon, 8 Mar 2010 03:10:01 +0000 (21:10 -0600)]
Merge remote branch 'willkg/master'

8 years agoA bit of documentation inside the wsgitapp __call__ routine
Christopher Allan Webber [Mon, 1 Mar 2010 00:31:17 +0000 (18:31 -0600)]
A bit of documentation inside the wsgitapp __call__ routine

8 years agoAdds mimetype images and reworks mimetype guessing. 5
Will Kahn-Greene [Mon, 22 Feb 2010 02:32:55 +0000 (21:32 -0500)]
Adds mimetype images and reworks mimetype guessing.

Discovered gitpython already knows the mimetypes of things, so we use that
instead of the guess_mimetype I had written.  Removed all the guess_mimetype
stuff.
Added display of mimetype images on the left side of tree views.  The
images are taken from Tango (http://tango.freedesktop.org/) and are in the
Public Domain.

8 years agoAdded unittest framework and tests for some util functions.
Will Kahn-Greene [Sun, 21 Feb 2010 23:52:47 +0000 (18:52 -0500)]
Added unittest framework and tests for some util functions.

8 years agoBetter handles text files that don't end in .txt.
Will Kahn-Greene [Sat, 20 Feb 2010 23:46:42 +0000 (18:46 -0500)]
Better handles text files that don't end in .txt.

8 years agoImplemented http cloning.
Will Kahn-Greene [Sat, 20 Feb 2010 23:30:18 +0000 (18:30 -0500)]
Implemented http cloning.

8 years agoThis fixes urls to use repo.slug instead of repo.name.
Will Kahn-Greene [Sat, 20 Feb 2010 17:54:00 +0000 (12:54 -0500)]
This fixes urls to use repo.slug instead of repo.name.

8 years agoTweaks mimetype guessing for raw files.
Will Kahn-Greene [Sat, 20 Feb 2010 17:51:19 +0000 (12:51 -0500)]
Tweaks mimetype guessing for raw files.

Moved mimetype guessing to util because it's going to have to be more
involved since files like LICENSE and README should show up as text/plain,
but mimetypes.guess_type only looks at file names.  Doing this makes
it easier to expand on and test.

8 years agoMerge remote branch 'willkg/master'
Christopher Allan Webber [Fri, 5 Feb 2010 01:37:10 +0000 (19:37 -0600)]
Merge remote branch 'willkg/master'

8 years agoGot rid of the branchdatas stuff, just working with the branches is fine.
Christopher Allan Webber [Mon, 18 Jan 2010 04:16:35 +0000 (22:16 -0600)]
Got rid of the branchdatas stuff, just working with the branches is fine.

8 years agoAbility to serve files RAW! 4
Will Kahn-Greene [Mon, 18 Jan 2010 01:06:11 +0000 (20:06 -0500)]
Ability to serve files RAW!

8 years agoAllow for commit id originating logs. Also renamed ref_name->
Christopher Allan Webber [Mon, 18 Jan 2010 00:49:21 +0000 (18:49 -0600)]
Allow for commit id originating logs.  Also renamed ref_name->
identifier, more appropriate.

8 years agoUpdated README. 3
Will Kahn-Greene [Sun, 17 Jan 2010 23:54:44 +0000 (18:54 -0500)]
Updated README.

* reworked wsgi.ini example to include /static stuff.
* fixed notes about hosts.

8 years agoMerge branch 'master' of git://gitorious.org/wsgit/wsgit
Will Kahn-Greene [Sun, 17 Jan 2010 23:30:56 +0000 (18:30 -0500)]
Merge branch 'master' of git://gitorious.org/wsgit/wsgit

8 years agoAppend / to directories in the tree listing
Christopher Allan Webber [Sun, 17 Jan 2010 01:33:36 +0000 (19:33 -0600)]
Append / to directories in the tree listing

8 years agoRemove the "patch link" text... maybe eventually that'll be added
Christopher Allan Webber [Sun, 17 Jan 2010 01:19:17 +0000 (19:19 -0600)]
Remove the "patch link" text... maybe eventually that'll be added

8 years agoReverse the sorting so that newer updated branches appear first
Christopher Allan Webber [Sun, 17 Jan 2010 01:15:38 +0000 (19:15 -0600)]
Reverse the sorting so that newer updated branches appear first

8 years agotree_extra_get should be an empty string when empty, not None
Christopher Allan Webber [Sun, 17 Jan 2010 01:06:52 +0000 (19:06 -0600)]
tree_extra_get should be an empty string when empty, not None

8 years agoGive a more useful "root" in the breadcrumbs when starting with an id
Christopher Allan Webber [Sun, 17 Jan 2010 01:04:28 +0000 (19:04 -0600)]
Give a more useful "root" in the breadcrumbs when starting with an id

8 years agoMinor spacing fix
Christopher Allan Webber [Sun, 17 Jan 2010 01:04:11 +0000 (19:04 -0600)]
Minor spacing fix

8 years agoMake use of trees with a starting ID
Christopher Allan Webber [Sun, 17 Jan 2010 00:58:11 +0000 (18:58 -0600)]
Make use of trees with a starting ID

8 years agoShow linked parent commits on a commit summary
Christopher Allan Webber [Sun, 17 Jan 2010 00:36:05 +0000 (18:36 -0600)]
Show linked parent commits on a commit summary

8 years agoPrettyify the sha1 listings on a commit page
Christopher Allan Webber [Sun, 17 Jan 2010 00:29:57 +0000 (18:29 -0600)]
Prettyify the sha1 listings on a commit page

8 years agoDon't put the "appears to be a binary file" in the codeblock
Christopher Allan Webber [Sun, 17 Jan 2010 00:23:48 +0000 (18:23 -0600)]
Don't put the "appears to be a binary file" in the codeblock
div... that's silly.

8 years agoA bunch of improvements for showing static files in a tree:
Christopher Allan Webber [Sun, 17 Jan 2010 00:14:08 +0000 (18:14 -0600)]
A bunch of improvements for showing static files in a tree:
 - Fixed a template block issue in repo_tree_file.html
 - nice line to the left of source
 - Inform a user if we can't format something and it appears to be a
   binary file

8 years agoPretty row hovering :)
Christopher Allan Webber [Sat, 16 Jan 2010 23:41:19 +0000 (17:41 -0600)]
Pretty row hovering :)

8 years agoTabs look nice enough
Christopher Allan Webber [Sat, 16 Jan 2010 23:19:27 +0000 (17:19 -0600)]
Tabs look nice enough

8 years agoNavigation tabs
Christopher Allan Webber [Sat, 16 Jan 2010 20:27:24 +0000 (14:27 -0600)]
Navigation tabs

8 years agoAdd the repository name linkable in the header
Christopher Allan Webber [Sat, 16 Jan 2010 20:03:23 +0000 (14:03 -0600)]
Add the repository name linkable in the header

8 years agoSwitching in a header for the navigation
Christopher Allan Webber [Sat, 16 Jan 2010 19:58:46 +0000 (13:58 -0600)]
Switching in a header for the navigation

8 years agoMake the commit info look prettier
Christopher Allan Webber [Sat, 16 Jan 2010 19:32:10 +0000 (13:32 -0600)]
Make the commit info look prettier

8 years agoStyle the codeblock
Christopher Allan Webber [Sat, 16 Jan 2010 18:52:00 +0000 (12:52 -0600)]
Style the codeblock

8 years agoStarting to actually make use of having CSS files. Yay! static
Christopher Allan Webber [Sat, 16 Jan 2010 18:24:22 +0000 (12:24 -0600)]
Starting to actually make use of having CSS files.  Yay!

8 years agoUse a global base stylesheet
Christopher Allan Webber [Sat, 16 Jan 2010 18:00:35 +0000 (12:00 -0600)]
Use a global base stylesheet

8 years agoSupport for staticdirect serving and direction
Christopher Allan Webber [Sat, 16 Jan 2010 17:54:30 +0000 (11:54 -0600)]
Support for staticdirect serving and direction

8 years agoAdded a TODO file. 2
Will Kahn-Greene [Thu, 14 Jan 2010 19:42:46 +0000 (14:42 -0500)]
Added a TODO file.

Based on conversation with Chris on 1/14/2010.

8 years agoMerge commit 'refs/merge-requests/1' of git://gitorious.org/wsgit/wsgit into integration
Christopher Allan Webber [Thu, 7 Jan 2010 01:07:31 +0000 (19:07 -0600)]
Merge commit 'refs/merge-requests/1' of git://gitorious.org/wsgit/wsgit into integration

8 years agoAdded README, AUTHORS and LICENSE files. 1
Will Kahn-Greene [Wed, 6 Jan 2010 01:11:49 +0000 (20:11 -0500)]
Added README, AUTHORS and LICENSE files.

8 years agoTemplates follow new structure, kinda
Christopher Allan Webber [Tue, 5 Jan 2010 04:54:03 +0000 (22:54 -0600)]
Templates follow new structure, kinda

8 years agoRemoving issue where filenames at root had double slashes
Christopher Allan Webber [Sun, 3 Jan 2010 20:56:00 +0000 (14:56 -0600)]
Removing issue where filenames at root had double slashes

8 years agoAppend / to the end of the breadcrumbs only if on a tree view
Christopher Allan Webber [Sun, 3 Jan 2010 20:38:59 +0000 (14:38 -0600)]
Append / to the end of the breadcrumbs only if on a tree view

8 years agoAdded breadcrumbs to the tree view
Christopher Allan Webber [Sun, 3 Jan 2010 20:35:46 +0000 (14:35 -0600)]
Added breadcrumbs to the tree view

8 years agoPretty printed file data
Christopher Allan Webber [Sun, 3 Jan 2010 19:07:24 +0000 (13:07 -0600)]
Pretty printed file data

8 years agodisplay files in wsgit's tree mode
Christopher Allan Webber [Sun, 3 Jan 2010 18:50:23 +0000 (12:50 -0600)]
display files in wsgit's tree mode

8 years agoStarting to properly make use of template inheritance
Christopher Allan Webber [Sun, 3 Jan 2010 17:59:08 +0000 (11:59 -0600)]
Starting to properly make use of template inheritance

8 years agoHeh, also needed to switch repo_name to repo['name'] in the request.urlgen() calls
Christopher Allan Webber [Sun, 3 Jan 2010 01:09:38 +0000 (19:09 -0600)]
Heh, also needed to switch repo_name to repo['name'] in the request.urlgen() calls

8 years agoAdded mimetype stuff
Christopher Allan Webber [Sun, 3 Jan 2010 01:05:20 +0000 (19:05 -0600)]
Added mimetype stuff

8 years agoUnifying the whole 'pass in repo' thing w/ the repo templates
Christopher Allan Webber [Sun, 3 Jan 2010 00:56:11 +0000 (18:56 -0600)]
Unifying the whole 'pass in repo' thing w/ the repo templates

8 years agoObject types as string is more interesting than permissions
Christopher Allan Webber [Sun, 3 Jan 2010 00:46:38 +0000 (18:46 -0600)]
Object types as string is more interesting than permissions

8 years agoOops, need this for the template to work.
Christopher Allan Webber [Sat, 2 Jan 2010 23:37:33 +0000 (17:37 -0600)]
Oops, need this for the template to work.

8 years agoLinked filenames in the tree listing.
Christopher Allan Webber [Sat, 2 Jan 2010 23:37:12 +0000 (17:37 -0600)]
Linked filenames in the tree listing.

8 years agoShow a human-readable filesize, if possible.
Christopher Allan Webber [Sat, 2 Jan 2010 23:31:19 +0000 (17:31 -0600)]
Show a human-readable filesize, if possible.

8 years agoFix the get_traversed_tree function.
Christopher Allan Webber [Sat, 2 Jan 2010 23:13:09 +0000 (17:13 -0600)]
Fix the get_traversed_tree function.

8 years agoRepository tree view starting to work
Christopher Allan Webber [Sat, 2 Jan 2010 03:48:38 +0000 (21:48 -0600)]
Repository tree view starting to work

Also added a permission_string_from_mode utility.

8 years agoMove templates into the wsgit/ directory
Christopher Allan Webber [Sat, 2 Jan 2010 01:31:50 +0000 (19:31 -0600)]
Move templates into the wsgit/ directory

8 years agoPass in numfiles to the context
Christopher Allan Webber [Sat, 2 Jan 2010 01:24:37 +0000 (19:24 -0600)]
Pass in numfiles to the context

8 years agoFixing a whitespace anchor tag issue
Christopher Allan Webber [Sat, 2 Jan 2010 00:53:52 +0000 (18:53 -0600)]
Fixing a whitespace anchor tag issue

8 years agoCommit link, and commented out some of the file stats stuff for now...
Christopher Allan Webber [Sat, 2 Jan 2010 00:30:31 +0000 (18:30 -0600)]
Commit link, and commented out some of the file stats stuff for now...

8 years agoStats on what's changed/inserted/deleted
Christopher Allan Webber [Fri, 1 Jan 2010 23:20:37 +0000 (17:20 -0600)]
Stats on what's changed/inserted/deleted

8 years agoShow a syntax-highlighted diff
Christopher Allan Webber [Fri, 1 Jan 2010 22:42:05 +0000 (16:42 -0600)]
Show a syntax-highlighted diff

8 years agoStart of the commit display page.
Christopher Allan Webber [Fri, 1 Jan 2010 20:39:45 +0000 (14:39 -0600)]
Start of the commit display page.

Still unstyled, and for now it only really has the summary...
But hey, that is progress :)

8 years agoMake those commit lines links
Christopher Allan Webber [Thu, 31 Dec 2009 21:05:44 +0000 (15:05 -0600)]
Make those commit lines links

8 years agoUse simple caching on statistics
Christopher Allan Webber [Thu, 31 Dec 2009 20:59:22 +0000 (14:59 -0600)]
Use simple caching on statistics

8 years agoprevious/next links work
Christopher Allan Webber [Thu, 31 Dec 2009 20:47:04 +0000 (14:47 -0600)]
previous/next links work

8 years agoAutoescaping by default, and adding summary truncation (over 80 == teh bads)
Christopher Allan Webber [Thu, 31 Dec 2009 20:46:42 +0000 (14:46 -0600)]
Autoescaping by default, and adding summary truncation (over 80 == teh bads)

8 years agoSeems clear that we don't need slug when we have name...
Christopher Allan Webber [Thu, 31 Dec 2009 20:33:21 +0000 (14:33 -0600)]
Seems clear that we don't need slug when we have name...

8 years agoLog listing kinda works
Christopher Allan Webber [Thu, 31 Dec 2009 19:22:36 +0000 (13:22 -0600)]
Log listing kinda works

8 years agoAdded routing for a bunch of views that don't exist yet
Christopher Allan Webber [Thu, 31 Dec 2009 18:01:27 +0000 (12:01 -0600)]
Added routing for a bunch of views that don't exist yet

8 years agoAdded links for the name and last commmit
Christopher Allan Webber [Thu, 31 Dec 2009 17:40:41 +0000 (11:40 -0600)]
Added links for the name and last commmit

8 years agoPoint description at the repository summary also
Christopher Allan Webber [Thu, 31 Dec 2009 17:11:17 +0000 (11:11 -0600)]
Point description at the repository summary also

8 years agoAbility to generate named urls now
Christopher Allan Webber [Thu, 31 Dec 2009 15:50:44 +0000 (09:50 -0600)]
Ability to generate named urls now

8 years agorepository summary stuff now exists and works..
Christopher Allan Webber [Tue, 29 Dec 2009 02:45:30 +0000 (20:45 -0600)]
repository summary stuff now exists and works..

8 years agoMake this specifically just pull 1 commit
Christopher Allan Webber [Tue, 29 Dec 2009 01:36:07 +0000 (19:36 -0600)]
Make this specifically just pull 1 commit

8 years agoAdded a note about seconds and caching
Christopher Allan Webber [Mon, 28 Dec 2009 17:47:15 +0000 (11:47 -0600)]
Added a note about seconds and caching

8 years agoPluralize time difference pretty printing
Christopher Allan Webber [Mon, 28 Dec 2009 17:45:54 +0000 (11:45 -0600)]
Pluralize time difference pretty printing

8 years agoCompare time difference with utcnow time.
Christopher Allan Webber [Mon, 28 Dec 2009 17:39:26 +0000 (11:39 -0600)]
Compare time difference with utcnow time.

8 years agoGot a simple frontpage table working
Christopher Allan Webber [Mon, 28 Dec 2009 15:33:25 +0000 (09:33 -0600)]
Got a simple frontpage table working

8 years agoAdding templates and stuff
Christopher Allan Webber [Mon, 28 Dec 2009 05:54:59 +0000 (23:54 -0600)]
Adding templates and stuff

8 years agoSupport wsgit config json files
Christopher Allan Webber [Mon, 28 Dec 2009 04:48:18 +0000 (22:48 -0600)]
Support wsgit config json files

8 years agoEarly wsgit app. Structure ripped from cc.engine, har har har.
Christopher Allan Webber [Sun, 27 Dec 2009 17:48:08 +0000 (11:48 -0600)]
Early wsgit app.  Structure ripped from cc.engine, har har har.