13 years agoRecursive directory lookup now stops when a repo is found. quenu
Dan Brook [Sun, 14 Nov 2010 22:40:35 +0000]
Recursive directory lookup now stops when a repo is found.

Instead of recursing through every possible directory now the lookup
will only recurse into non-repo directories.

13 years agoDrop broken assertions in t/02git_CollectionOfRepositories_FromDirectoryRecursive.t.
Dan Brook [Mon, 1 Nov 2010 22:48:47 +0000]
Drop broken assertions in t/02git_CollectionOfRepositories_FromDirectoryRecursive.t.

The assertions only make sense if Gitalist is operating as a git clone
and is the first repo to be found in its parent directory. This will
be a bit faily for CPAN and would probably make some CPAN testers sad.

This also brings us to 100% test passes on the quenu branch, huzzah!

13 years agoSquash warning in Path::Class::Dir from contains() call.
Dan Brook [Mon, 1 Nov 2010 22:41:04 +0000]
Squash warning in Path::Class::Dir from contains() call.

13 years agoMake FromDirectoryRecursive operate in bootstrap env.
Dan Brook [Mon, 1 Nov 2010 22:42:05 +0000]
Make FromDirectoryRecursive operate in bootstrap env.

Also fixed an assertion in t/model_collectionofrepos.t to reflect the
2 new repos that have been added.

13 years agoJust make sure finds a recursive git directory
Dipesh Patel [Fri, 3 Sep 2010 14:16:30 +0000]
Just make sure finds a recursive git directory

13 years agoAdditional unit test.
Dipesh Patel [Thu, 2 Sep 2010 13:56:18 +0000]
Additional unit test.

Add unit test to check that git repos within git repos are ignored for now.

13 years agoDo proper checking of git directories.
Dipesh Patel [Wed, 1 Sep 2010 17:58:21 +0000]
Do proper checking of git directories.

Tidy up and use callback to resolve the repo path for a recursive directory.

13 years agoFix broken recursive lookup and add unit tests.
Dipesh Patel [Tue, 31 Aug 2010 16:43:13 +0000]
Fix broken recursive lookup and add unit tests.

get_repository needs to have full path as Path::Class::Dir can't resolve from child. Added few new repos to test. Fixed unit tests and added a bit of detail.

13 years agoNo need for addtional variable.
Dipesh Patel [Fri, 20 Aug 2010 09:59:53 +0000]
No need for addtional variable.

Remove repo dir variable and loop though newly created repos to exclude paths.

13 years agoFew tidy ups on Recursive From Directory.
Dipesh Patel [Thu, 19 Aug 2010 17:35:54 +0000]
Few tidy ups on Recursive From Directory.

Return from callback if in subdir of already git found parent dir. Remove addition of unneeded method.

13 years agoFirst pass attempt to recursively search through directories.
Dipesh Patel [Wed, 18 Aug 2010 22:29:20 +0000]
First pass attempt to recursively search through directories.

Go throught directories using Dir->recursive. However bit expensive
as will carry on even if git repo found so may change.

13 years agoFix env to work for Makefile.PL too.
Dan Brook [Mon, 1 Nov 2010 21:55:57 +0000]
Fix env to work for Makefile.PL too.

Rewrote $lookup so it is now sane and does what it says in the comment:
looks up the directory structure until it finds a Makefile.PL or hits
the root directory (aka the error condition).

13 years agoFix recursion bug in the lookup sub of the env script.
Dan Brook [Sun, 31 Oct 2010 18:13:00 +0000]
Fix recursion bug in the lookup sub of the env script.

13 years agoBootstrap test fixes.
Dan Brook [Sun, 31 Oct 2010 17:59:58 +0000]
Bootstrap test fixes.

The author tests were failing in a bootstrapped environment as the env
script only looked at the current or the parent directory for
local-lib5. Also fixed the POD tests to look under lib so as to avoid
trawling local-lib5 for unrelated modules.

Fixed the tag and head tests to make use of env.

13 years agoFix for failing assertion in t/02git_object.t.
Dan Brook [Sun, 31 Oct 2010 17:51:47 +0000]
Fix for failing assertion in t/02git_object.t.

An overloaded object would fail an "eq" comparison in the test (at
line 42) because it didn't also overload the comparison operators.

13 years agoAdd Test::Exception dep.
Dan Brook [Sun, 31 Oct 2010 17:51:23 +0000]
Add Test::Exception dep.

13 years agoIntroduce Gitalist::Git::Tag.
Zachary Stevens [Sun, 27 Jun 2010 22:28:13 +0000]
Introduce Gitalist::Git::Tag.

Encapsulates a git tag.
Repository->tags is now an ArrayRef of these.

13 years agoCreate Head instances from unparsed git output.
Zachary Stevens [Sun, 27 Jun 2010 17:02:30 +0000]
Create Head instances from unparsed git output.

13 years agoIntroduce Gitalist::Git::Head.
Zachary Stevens [Sun, 27 Jun 2010 14:42:17 +0000]
Introduce Gitalist::Git::Head.

Encapsulates a git head.
Repository->heads is now an ArrayRef of these.

13 years agoTest fixup - Repository->list_tree is gone.
Zachary Stevens [Sun, 27 Jun 2010 14:39:40 +0000]
Test fixup - Repository->list_tree is gone.

13 years agoCommit->sha_by_path now returns an object.
Zachary Stevens [Sun, 27 Jun 2010 01:06:32 +0000]
Commit->sha_by_path now returns an object.

13 years agoRemove Repository->get_object_or_head.
Zachary Stevens [Sun, 27 Jun 2010 00:24:53 +0000]
Remove Repository->get_object_or_head.

Redundant - R->get_object does the same thing.

13 years agoRemove Repository->list_tree.
Zachary Stevens [Sat, 26 Jun 2010 19:50:26 +0000]
Remove Repository->list_tree.

The list is available via Tree->tree, so use that instead.

13 years agoMove Repository->hash_by_path to Commit->sha_by_path.
Zachary Stevens [Sat, 26 Jun 2010 22:14:11 +0000]
Move Repository->hash_by_path to Commit->sha_by_path.

13 years agoClean hash_by_path's signature.
Zachary Stevens [Sat, 26 Jun 2010 19:02:12 +0000]
Clean hash_by_path's signature.

Removed unused 'type' argument.
Don't specify a default for path - it's required.

13 years agoStringify Object instances to their sha1.
Zachary Stevens [Sat, 26 Jun 2010 18:54:05 +0000]
Stringify Object instances to their sha1.

13 years agoRegenerated README and fixed tests for bootstrapped checkouts.
Dan Brook [Sun, 31 Oct 2010 11:07:50 +0000]
Regenerated README and fixed tests for bootstrapped checkouts.

13 years agoimprove POD mark-up, some typos
Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 [Mon, 18 Oct 2010 12:35:52 +0000]
improve POD mark-up, some typos

13 years agoBumped version to 0.002006 and updated Changes. 0.002006
Dan Brook [Sun, 17 Oct 2010 16:12:00 +0000]
Bumped version to 0.002006 and updated Changes.

13 years agoMerge remote branch 'augustf/master'
Dan Brook [Sun, 19 Sep 2010 10:05:35 +0000]
Merge remote branch 'augustf/master'

* augustf/master:
  Added notes regarding slash encoding in Catalyst
  Updated formatting in Gitalist.pm
  Yet another formatting fix to the README...
  Updated README text in Gitalist.pm for README generation...
  Almost forgot to add some troublshooting steps...
  Modified README with more details on FCGI deployment with Apache

13 years agoAdded notes regarding slash encoding in Catalyst
August [Thu, 9 Sep 2010 02:30:24 +0000]
Added notes regarding slash encoding in Catalyst

13 years agoFixed typo in core.css
Zachary Stevens [Mon, 23 Aug 2010 22:30:27 +0000]
Fixed typo in core.css

13 years agoUpdated formatting in Gitalist.pm
August [Mon, 23 Aug 2010 15:26:57 +0000]
Updated formatting in Gitalist.pm

13 years agoYet another formatting fix to the README...
August [Mon, 23 Aug 2010 15:25:26 +0000]
Yet another formatting fix to the README...

13 years agoUpdated README text in Gitalist.pm for README generation...
August [Sun, 22 Aug 2010 20:55:27 +0000]
Updated README text in Gitalist.pm for README generation...

13 years agoAlmost forgot to add some troublshooting steps...
August [Sun, 22 Aug 2010 20:50:36 +0000]
Almost forgot to add some troublshooting steps...

13 years agoModified README with more details on FCGI deployment with Apache
August [Sun, 22 Aug 2010 20:47:28 +0000]
Modified README with more details on FCGI deployment with Apache

13 years agoFix broken env includes in script/gitalist*.pl.
Dan Brook [Fri, 13 Aug 2010 15:47:21 +0000]
Fix broken env includes in script/gitalist*.pl.

13 years agoFix tests dying in absence of bootstrap scripts. 0.002005
Dan Brook [Fri, 13 Aug 2010 14:29:10 +0000]
Fix tests dying in absence of bootstrap scripts.

13 years agoBump Gitalist version and required Git::PurePerl version.
Dan Brook [Fri, 13 Aug 2010 12:00:23 +0000]
Bump Gitalist version and required Git::PurePerl version.

13 years agoLimit the number of branches/tags listed by default.
Dan Brook [Fri, 13 Aug 2010 11:18:11 +0000]
Limit the number of branches/tags listed by default.

In the quick branch switch and the summary page the number of
branches/tags is now limited to the paging.summary config
setting. This way repos with large numbers of refs no longer bog down
every page or the overview that is the summary.

13 years agoFix variable and blame bugs.
Dan Brook [Mon, 2 Aug 2010 09:17:06 +0000]
Fix variable and blame bugs.

- Fix misnamed variable which was giving a syntax error in
Gitalist::Controller::Fragment::Ref.
- Fix blame view to display syntax highlighted blobs correctly instead of
outputting raw HTML.

13 years agoFix changelog 0.002004
Tomas Doran [Mon, 2 Aug 2010 08:26:00 +0000]
Fix changelog

13 years agoMerge
Tomas Doran [Mon, 2 Aug 2010 08:21:07 +0000]
Merge

13 years agoVersion 0.002003 0.002003
Tomas Doran [Mon, 2 Aug 2010 08:07:44 +0000]
Version 0.002003

13 years agoFix for dist versions
Tomas Doran [Mon, 2 Aug 2010 08:00:24 +0000]
Fix for dist versions

13 years agoVersion number bump as previous dist was littered with non-dist files. 0.002002
Dan Brook [Sun, 1 Aug 2010 10:47:30 +0000]
Version number bump as previous dist was littered with non-dist files.

13 years agoDrop dev part of version number, new release ready!
Dan Brook [Sat, 31 Jul 2010 09:20:33 +0000]
Drop dev part of version number, new release ready!

13 years agoExclude bootstrap related scripts from dist, bump dev version.
Dan Brook [Sat, 31 Jul 2010 09:03:53 +0000]
Exclude bootstrap related scripts from dist, bump dev version.

* Updated docs accordingly.

13 years agoFix bundling issue by bundling File::Copy::Recursive
Tomas Doran [Wed, 7 Jul 2010 19:07:16 +0000]
Fix bundling issue by bundling File::Copy::Recursive

13 years agoBumped version and added bootstrap docs.
Dan Brook [Sat, 3 Jul 2010 15:48:44 +0000]
Bumped version and added bootstrap docs.

Not only can this dist be bootstrapped I've even documented how to do it. Also
fixed up tabs that had crept into a couple of files.

13 years agoInitial stab at a working ContentMangler.
Dan Brook [Sat, 15 May 2010 13:05:03 +0000]
Initial stab at a working ContentMangler.

The idea is that the Resolver will figure out which Transformer will do
the mangling. There can only be one Transformer presently, mostly so I
don't get lost in a sea of complications. Much follow up work is needed
and ideally another mangler e.g POD.

13 years agoBug fix for merge diffs and a test.
Dan Brook [Tue, 29 Jun 2010 09:48:16 +0000]
Bug fix for merge diffs and a test.

In the case of the merge diff fix we now check if $parent has
something to be compared against before making a comparison.

The case of the t/00git_version.t fix is a little more
interesting. For reasons I don't fully understand running a program
which writes to stdout in scalar context has $! is set to 9 (aka
"Bad file descriptor"). Something to do with close-on-exec I think.

13 years agoRevert "Merge remote branch 't0m/json' into json"
Dan Brook [Tue, 29 Jun 2010 09:00:08 +0000]
Revert "Merge remote branch 't0m/json' into json"

This reverts commit 68943a848e5fae4bd91569b930ddcdcecc6dfe9b, reversing
changes made to 0fa199d20f9c661f21ced401be8dc12e0e93ecdd.

Conflicts:

Makefile.PL
lib/Gitalist/Controller/Root.pm
lib/Gitalist/Git/Repository.pm
t/02git_Repository.t
t/json_view.t

13 years agoHandle merges in the diff view.
Dan Brook [Sat, 19 Jun 2010 20:27:17 +0000]
Handle merges in the diff view.

Now Gitalist::Git::Object::Commit::diff supports returning something
useful for merge commits. It now shows the difference between the two
parents of the commit, not sure if it covers octopus merges. Also gets
you something meaningful in the /<repo>/<sha1>/diff view finally.

13 years agoFix rebase goofs.
Dan Brook [Sat, 19 Jun 2010 15:59:37 +0000]
Fix rebase goofs.

13 years agoRevert the part of 9aeab0dfe0 which was causing massive breakage
Tomas Doran [Thu, 13 May 2010 07:22:47 +0000]
Revert the part of 9aeab0dfe0 which was causing massive breakage

13 years agoFixed summary and changed a few links.
Dan Brook [Tue, 11 May 2010 21:30:39 +0000]
Fixed summary and changed a few links.

Having object and summary try to grab the same part of the request was never
going to work, my bad. Should also have support having summary point at
arbitrary commits like pretty much every other action.

Changed repo links to point to summary instead of shortlog.

13 years agoAdded commit object serialization.
Dan Brook [Mon, 10 May 2010 21:57:55 +0000]
Added commit object serialization.

The syntax change for "with ..." is because of what seems to be a bug in
MooseX::Declare, see http://pastie.org/private/7btrsbgqkvgxxbub1aea.

13 years agoFixed failing Content-Type tests.
Dan Brook [Thu, 6 May 2010 22:20:47 +0000]
Fixed failing Content-Type tests.

* Fixed bare repo bug where we were trying to build references that
didn't exist.
* Fixed bug where HTML entities were creeping into the atom feed.

13 years agoSwitched from CDN hosted jQuery to a local copy.
Dan Brook [Thu, 6 May 2010 16:37:28 +0000]
Switched from CDN hosted jQuery to a local copy.

13 years agoUpdating Changes with latest changes.
Dan Brook [Mon, 3 May 2010 21:07:49 +0000]
Updating Changes with latest changes.

13 years agoFix for loadCommitInfo.
Dan Brook [Mon, 3 May 2010 20:59:59 +0000]
Fix for loadCommitInfo.

Only call _loadCommitInfo when there are corresponding elements to
update.

13 years agoA few fixes to get the JSON test working.
Dan Brook [Sun, 2 May 2010 21:01:55 +0000]
A few fixes to get the JSON test working.

Reinstate a couple of changes lost in the merge and update some of the
docs to be in line with swann.
The Repository is now exposed for JSON requests.

13 years agoCorrect example link and FCGI script.
Dan Brook [Sun, 2 May 2010 18:55:09 +0000]
Correct example link and FCGI script.

As we've got local::lib baked in now the setting of PERL5LIB is no
longer necessary for the FCGI script.

13 years agoThrottle the commit info loading.
Dan Brook [Sun, 2 May 2010 14:03:29 +0000]
Throttle the commit info loading.

So instead of making N calls as soon as the page loads get the
commit info for the next entry as soon as the last one finishes.

13 years agoUpdate bootstrapping for local::lib 1.006000.
Dan Brook [Sat, 1 May 2010 23:36:25 +0000]
Update bootstrapping for local::lib 1.006000.

As local::lib has stopped supporting the "--self-contained" flag the
relevant code needed updating.
Also added the JSON::XS dependency.

13 years agoFixed Gitalist::Utils::is_binary to work.
Dan Brook [Fri, 30 Apr 2010 21:39:31 +0000]
Fixed Gitalist::Utils::is_binary to work.

For some reason calling -B with an in-memory filehandle doesn't work.
In lieu of that functionality I used a shoddy heuristic to look for
a line or two of printable characters.

13 years agoFixed a couple of URI escaping related bugs.
Dan Brook [Sat, 24 Apr 2010 22:18:42 +0000]
Fixed a couple of URI escaping related bugs.

* Also ditched redundant CSS.

13 years agoMoved JS into its own file.
Dan Brook [Sat, 24 Apr 2010 20:13:19 +0000]
Moved JS into its own file.

* Fixed links in _refs.tt2.
* All bits of JS related data live in hidden SPANs now.
* Pulling in jQuery on every page now via the Google CDN.
* The branch list drop down now switches based on the current action.

13 years agoAdd age to commit info.
Dan Brook [Sat, 24 Apr 2010 16:29:07 +0000]
Add age to commit info.

13 years agoFix link to commit in JS.
Dan Brook [Fri, 23 Apr 2010 22:47:41 +0000]
Fix link to commit in JS.

13 years agoProof of concept for #56388: add last commit msg to tre views.
Dan Brook [Fri, 23 Apr 2010 22:41:20 +0000]
Proof of concept for #56388: add last commit msg to tre views.

13 years agoGot blob highlighting working with the ContentMangler.
Dan Brook [Sat, 17 Apr 2010 20:42:07 +0000]
Got blob highlighting working with the ContentMangler.

13 years agoA manual cherry-picking of f012b0, making use of syn_engines work mostly.
Dan Brook [Thu, 15 Apr 2010 21:09:41 +0000]
A manual cherry-picking of f012b0, making use of syn_engines work mostly.

From the original commit by t0m:

Aaaaaand the logic (such as it is) for syntax stuff is pretty much is
where I wanted it.

Still needs a pile of work, but like this, we can test
mangling/highlighting engines seperately to the code which causes things
to be highlighted, which is nice as you can replace highlighting strategy
and individual highlighter implementations independently.

13 years agoInitial l::l crap
Tomas Doran [Wed, 9 Dec 2009 01:46:54 +0000]
Initial l::l crap

13 years agoCommit all of the local::lib scripts in base form
Tomas Doran [Wed, 9 Dec 2009 01:45:32 +0000]
Commit all of the local::lib scripts in base form

13 years agoNo, it didn't, but did subsequently
Tomas Doran [Mon, 21 Dec 2009 12:44:05 +0000]
No, it didn't, but did subsequently

13 years agoNeed 0.45
Tomas Doran [Mon, 21 Dec 2009 12:39:41 +0000]
Need 0.45

13 years agoMake a resolver object implementing the current policy. You should now be able to...
Tomas Doran [Sat, 23 Jan 2010 20:05:11 +0000]
Make a resolver object implementing the current policy. You should now be able to swap a wholely different resolver in with config.. Next up - generating the views that resolvers map to by config :)

13 years agoAaaaaand the logic (such as it is) for syntax stuff is pretty much is where I wanted it.
Tomas Doran [Tue, 12 Jan 2010 02:49:30 +0000]
Aaaaaand the logic (such as it is) for syntax stuff is pretty much is where I wanted it.

Still needs a pile of work, but like this, we can test mangling/highlighting engines seperately to the code which causes things to be highlighted, which is nice as you can replace highlighting strategy and individual highlighter implementations independently.

13 years agoAdd skeleton content mangling model
Tomas Doran [Tue, 12 Jan 2010 02:13:17 +0000]
Add skeleton content mangling model

13 years agoTurn the syntax highlighter into a standard view with a render method
Tomas Doran [Tue, 12 Jan 2010 02:12:27 +0000]
Turn the syntax highlighter into a standard view with a render method

13 years agoAdd RESTful Content-Type bits to the root controller, add a simple test for summary...
Tomas Doran [Mon, 11 Jan 2010 00:07:32 +0000]
Add RESTful Content-Type bits to the root controller, add a simple test for summary pages (which is all that works right now

13 years agoThe heads aren't real objects, just a data structure. Exclude them from serialization...
Tomas Doran [Mon, 11 Jan 2010 00:06:01 +0000]
The heads aren't real objects, just a data structure. Exclude them from serialization right now

13 years agoAdd a trivial test
Tomas Doran [Sun, 10 Jan 2010 23:35:56 +0000]
Add a trivial test

13 years agoDo the correct thing with type contraints etc to be able to serialize things
Tomas Doran [Sun, 10 Jan 2010 23:29:22 +0000]
Do the correct thing with type contraints etc to be able to serialize things

13 years agoAdd extra deps
Tomas Doran [Sun, 10 Jan 2010 22:34:37 +0000]
Add extra deps

13 years agoAdd a trivial test
Tomas Doran [Sun, 10 Jan 2010 23:35:56 +0000]
Add a trivial test

13 years agoDo the correct thing with type contraints etc to be able to serialize things
Tomas Doran [Sun, 10 Jan 2010 23:29:22 +0000]
Do the correct thing with type contraints etc to be able to serialize things

13 years agoAdd the serializeable role everywhere
Tomas Doran [Sun, 10 Jan 2010 22:52:29 +0000]
Add the serializeable role everywhere

13 years agoAdd a role for MooseX::Storage
Tomas Doran [Sun, 10 Jan 2010 22:41:15 +0000]
Add a role for MooseX::Storage

13 years agoAdd extra deps
Tomas Doran [Sun, 10 Jan 2010 22:34:37 +0000]
Add extra deps

13 years agoVersion number bump as previous dist was littered with non-dist files.
Dan Brook [Sun, 1 Aug 2010 10:47:30 +0000]
Version number bump as previous dist was littered with non-dist files.

13 years agoDrop dev part of version number, new release ready! 0.002001
Dan Brook [Sat, 31 Jul 2010 09:20:33 +0000]
Drop dev part of version number, new release ready!

13 years agoExclude bootstrap related scripts from dist, bump dev version. 0.002001_02
Dan Brook [Sat, 31 Jul 2010 09:03:53 +0000]
Exclude bootstrap related scripts from dist, bump dev version.

* Updated docs accordingly.

13 years agoFix bundling issue by bundling File::Copy::Recursive
Tomas Doran [Wed, 7 Jul 2010 19:07:16 +0000]
Fix bundling issue by bundling File::Copy::Recursive

13 years agoBumped version and added bootstrap docs. 0.002001_01
Dan Brook [Sat, 3 Jul 2010 15:48:44 +0000]
Bumped version and added bootstrap docs.

Not only can this dist be bootstrapped I've even documented how to do it. Also
fixed up tabs that had crept into a couple of files.

13 years agoInitial stab at a working ContentMangler.
Dan Brook [Sat, 15 May 2010 13:05:03 +0000]
Initial stab at a working ContentMangler.

The idea is that the Resolver will figure out which Transformer will do
the mangling. There can only be one Transformer presently, mostly so I
don't get lost in a sea of complications. Much follow up work is needed
and ideally another mangler e.g POD.

13 years agoBug fix for merge diffs and a test.
Dan Brook [Tue, 29 Jun 2010 09:48:16 +0000]
Bug fix for merge diffs and a test.

In the case of the merge diff fix we now check if $parent has
something to be compared against before making a comparison.

The case of the t/00git_version.t fix is a little more
interesting. For reasons I don't fully understand running a program
which writes to stdout in scalar context has $! is set to 9 (aka
"Bad file descriptor"). Something to do with close-on-exec I think.