amp 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/.hgignore +26 -0
- data/AUTHORS +2 -0
- data/History.txt +6 -0
- data/LICENSE +37 -0
- data/MANIFESTO +7 -0
- data/Manifest.txt +294 -0
- data/README.md +129 -0
- data/Rakefile +102 -0
- data/SCHEDULE.markdown +12 -0
- data/STYLE +27 -0
- data/TODO.markdown +149 -0
- data/ampfile.rb +47 -0
- data/bin/amp +30 -0
- data/bin/amp1.9 +30 -0
- data/ext/amp/bz2/README.txt +39 -0
- data/ext/amp/bz2/bz2.c +1582 -0
- data/ext/amp/bz2/extconf.rb +77 -0
- data/ext/amp/bz2/mkmf.log +29 -0
- data/ext/amp/mercurial_patch/extconf.rb +5 -0
- data/ext/amp/mercurial_patch/mpatch.c +405 -0
- data/ext/amp/priority_queue/extconf.rb +5 -0
- data/ext/amp/priority_queue/priority_queue.c +947 -0
- data/ext/amp/support/extconf.rb +5 -0
- data/ext/amp/support/support.c +250 -0
- data/lib/amp.rb +200 -0
- data/lib/amp/commands/command.rb +507 -0
- data/lib/amp/commands/command_support.rb +137 -0
- data/lib/amp/commands/commands/config.rb +143 -0
- data/lib/amp/commands/commands/help.rb +29 -0
- data/lib/amp/commands/commands/init.rb +10 -0
- data/lib/amp/commands/commands/templates.rb +137 -0
- data/lib/amp/commands/commands/version.rb +7 -0
- data/lib/amp/commands/commands/workflow.rb +28 -0
- data/lib/amp/commands/commands/workflows/git/add.rb +65 -0
- data/lib/amp/commands/commands/workflows/git/copy.rb +27 -0
- data/lib/amp/commands/commands/workflows/git/mv.rb +23 -0
- data/lib/amp/commands/commands/workflows/git/rm.rb +60 -0
- data/lib/amp/commands/commands/workflows/hg/add.rb +53 -0
- data/lib/amp/commands/commands/workflows/hg/addremove.rb +86 -0
- data/lib/amp/commands/commands/workflows/hg/annotate.rb +46 -0
- data/lib/amp/commands/commands/workflows/hg/archive.rb +126 -0
- data/lib/amp/commands/commands/workflows/hg/branch.rb +28 -0
- data/lib/amp/commands/commands/workflows/hg/branches.rb +30 -0
- data/lib/amp/commands/commands/workflows/hg/bundle.rb +115 -0
- data/lib/amp/commands/commands/workflows/hg/clone.rb +95 -0
- data/lib/amp/commands/commands/workflows/hg/commit.rb +42 -0
- data/lib/amp/commands/commands/workflows/hg/copy.rb +31 -0
- data/lib/amp/commands/commands/workflows/hg/debug/dirstate.rb +32 -0
- data/lib/amp/commands/commands/workflows/hg/debug/index.rb +36 -0
- data/lib/amp/commands/commands/workflows/hg/default.rb +9 -0
- data/lib/amp/commands/commands/workflows/hg/diff.rb +30 -0
- data/lib/amp/commands/commands/workflows/hg/forget.rb +11 -0
- data/lib/amp/commands/commands/workflows/hg/heads.rb +25 -0
- data/lib/amp/commands/commands/workflows/hg/identify.rb +23 -0
- data/lib/amp/commands/commands/workflows/hg/import.rb +135 -0
- data/lib/amp/commands/commands/workflows/hg/incoming.rb +85 -0
- data/lib/amp/commands/commands/workflows/hg/info.rb +18 -0
- data/lib/amp/commands/commands/workflows/hg/log.rb +21 -0
- data/lib/amp/commands/commands/workflows/hg/manifest.rb +13 -0
- data/lib/amp/commands/commands/workflows/hg/merge.rb +53 -0
- data/lib/amp/commands/commands/workflows/hg/move.rb +28 -0
- data/lib/amp/commands/commands/workflows/hg/outgoing.rb +61 -0
- data/lib/amp/commands/commands/workflows/hg/pull.rb +74 -0
- data/lib/amp/commands/commands/workflows/hg/push.rb +20 -0
- data/lib/amp/commands/commands/workflows/hg/remove.rb +45 -0
- data/lib/amp/commands/commands/workflows/hg/resolve.rb +83 -0
- data/lib/amp/commands/commands/workflows/hg/revert.rb +53 -0
- data/lib/amp/commands/commands/workflows/hg/root.rb +13 -0
- data/lib/amp/commands/commands/workflows/hg/serve.rb +38 -0
- data/lib/amp/commands/commands/workflows/hg/status.rb +116 -0
- data/lib/amp/commands/commands/workflows/hg/tag.rb +69 -0
- data/lib/amp/commands/commands/workflows/hg/tags.rb +27 -0
- data/lib/amp/commands/commands/workflows/hg/tip.rb +13 -0
- data/lib/amp/commands/commands/workflows/hg/update.rb +27 -0
- data/lib/amp/commands/commands/workflows/hg/verify.rb +9 -0
- data/lib/amp/commands/commands/workflows/hg/view.rb +36 -0
- data/lib/amp/commands/dispatch.rb +181 -0
- data/lib/amp/commands/hooks.rb +81 -0
- data/lib/amp/dependencies/amp_support.rb +1 -0
- data/lib/amp/dependencies/amp_support/ruby_amp_support.rb +103 -0
- data/lib/amp/dependencies/minitar.rb +979 -0
- data/lib/amp/dependencies/priority_queue.rb +18 -0
- data/lib/amp/dependencies/priority_queue/c_priority_queue.rb +1 -0
- data/lib/amp/dependencies/priority_queue/poor_priority_queue.rb +46 -0
- data/lib/amp/dependencies/priority_queue/ruby_priority_queue.rb +525 -0
- data/lib/amp/dependencies/python_config.rb +211 -0
- data/lib/amp/dependencies/trollop.rb +713 -0
- data/lib/amp/dependencies/zip/ioextras.rb +155 -0
- data/lib/amp/dependencies/zip/stdrubyext.rb +111 -0
- data/lib/amp/dependencies/zip/tempfile_bugfixed.rb +186 -0
- data/lib/amp/dependencies/zip/zip.rb +1850 -0
- data/lib/amp/dependencies/zip/zipfilesystem.rb +609 -0
- data/lib/amp/dependencies/zip/ziprequire.rb +90 -0
- data/lib/amp/encoding/base85.rb +97 -0
- data/lib/amp/encoding/binary_diff.rb +82 -0
- data/lib/amp/encoding/difflib.rb +166 -0
- data/lib/amp/encoding/mercurial_diff.rb +378 -0
- data/lib/amp/encoding/mercurial_patch.rb +1 -0
- data/lib/amp/encoding/patch.rb +292 -0
- data/lib/amp/encoding/pure_ruby/ruby_mercurial_patch.rb +123 -0
- data/lib/amp/extensions/ditz.rb +41 -0
- data/lib/amp/extensions/lighthouse.rb +167 -0
- data/lib/amp/graphs/ancestor.rb +147 -0
- data/lib/amp/graphs/copies.rb +261 -0
- data/lib/amp/merges/merge_state.rb +164 -0
- data/lib/amp/merges/merge_ui.rb +322 -0
- data/lib/amp/merges/simple_merge.rb +450 -0
- data/lib/amp/profiling_hacks.rb +36 -0
- data/lib/amp/repository/branch_manager.rb +234 -0
- data/lib/amp/repository/dir_state.rb +950 -0
- data/lib/amp/repository/journal.rb +203 -0
- data/lib/amp/repository/lock.rb +207 -0
- data/lib/amp/repository/repositories/bundle_repository.rb +214 -0
- data/lib/amp/repository/repositories/http_repository.rb +377 -0
- data/lib/amp/repository/repositories/local_repository.rb +2661 -0
- data/lib/amp/repository/repository.rb +94 -0
- data/lib/amp/repository/store.rb +485 -0
- data/lib/amp/repository/tag_manager.rb +319 -0
- data/lib/amp/repository/updatable.rb +532 -0
- data/lib/amp/repository/verification.rb +431 -0
- data/lib/amp/repository/versioned_file.rb +475 -0
- data/lib/amp/revlogs/bundle_revlogs.rb +246 -0
- data/lib/amp/revlogs/changegroup.rb +217 -0
- data/lib/amp/revlogs/changelog.rb +338 -0
- data/lib/amp/revlogs/changeset.rb +521 -0
- data/lib/amp/revlogs/file_log.rb +165 -0
- data/lib/amp/revlogs/index.rb +493 -0
- data/lib/amp/revlogs/manifest.rb +195 -0
- data/lib/amp/revlogs/node.rb +18 -0
- data/lib/amp/revlogs/revlog.rb +1032 -0
- data/lib/amp/revlogs/revlog_support.rb +126 -0
- data/lib/amp/server/amp_user.rb +44 -0
- data/lib/amp/server/extension/amp_extension.rb +396 -0
- data/lib/amp/server/extension/authorization.rb +201 -0
- data/lib/amp/server/fancy_http_server.rb +252 -0
- data/lib/amp/server/fancy_views/_browser.haml +28 -0
- data/lib/amp/server/fancy_views/_diff_file.haml +13 -0
- data/lib/amp/server/fancy_views/_navbar.haml +17 -0
- data/lib/amp/server/fancy_views/changeset.haml +31 -0
- data/lib/amp/server/fancy_views/commits.haml +32 -0
- data/lib/amp/server/fancy_views/file.haml +35 -0
- data/lib/amp/server/fancy_views/file_diff.haml +23 -0
- data/lib/amp/server/fancy_views/harshcss/all_hallows_eve.css +72 -0
- data/lib/amp/server/fancy_views/harshcss/amy.css +147 -0
- data/lib/amp/server/fancy_views/harshcss/twilight.css +138 -0
- data/lib/amp/server/fancy_views/stylesheet.sass +175 -0
- data/lib/amp/server/http_server.rb +140 -0
- data/lib/amp/server/repo_user_management.rb +287 -0
- data/lib/amp/support/amp_config.rb +164 -0
- data/lib/amp/support/amp_ui.rb +287 -0
- data/lib/amp/support/docs.rb +54 -0
- data/lib/amp/support/generator.rb +78 -0
- data/lib/amp/support/ignore.rb +144 -0
- data/lib/amp/support/loaders.rb +93 -0
- data/lib/amp/support/logger.rb +103 -0
- data/lib/amp/support/match.rb +151 -0
- data/lib/amp/support/multi_io.rb +87 -0
- data/lib/amp/support/openers.rb +121 -0
- data/lib/amp/support/ruby_19_compatibility.rb +66 -0
- data/lib/amp/support/support.rb +1095 -0
- data/lib/amp/templates/blank.commit.erb +23 -0
- data/lib/amp/templates/blank.log.erb +18 -0
- data/lib/amp/templates/default.commit.erb +23 -0
- data/lib/amp/templates/default.log.erb +26 -0
- data/lib/amp/templates/template.rb +165 -0
- data/site/Rakefile +24 -0
- data/site/src/about/ampfile.haml +57 -0
- data/site/src/about/commands.haml +106 -0
- data/site/src/about/index.haml +33 -0
- data/site/src/about/performance.haml +31 -0
- data/site/src/about/workflows.haml +34 -0
- data/site/src/contribute/index.haml +65 -0
- data/site/src/contribute/style.haml +297 -0
- data/site/src/css/active4d.css +114 -0
- data/site/src/css/all_hallows_eve.css +72 -0
- data/site/src/css/all_themes.css +3299 -0
- data/site/src/css/amp.css +260 -0
- data/site/src/css/amy.css +147 -0
- data/site/src/css/blackboard.css +88 -0
- data/site/src/css/brilliance_black.css +605 -0
- data/site/src/css/brilliance_dull.css +599 -0
- data/site/src/css/cobalt.css +149 -0
- data/site/src/css/cur_amp.css +185 -0
- data/site/src/css/dawn.css +121 -0
- data/site/src/css/eiffel.css +121 -0
- data/site/src/css/espresso_libre.css +109 -0
- data/site/src/css/idle.css +62 -0
- data/site/src/css/iplastic.css +80 -0
- data/site/src/css/lazy.css +73 -0
- data/site/src/css/mac_classic.css +123 -0
- data/site/src/css/magicwb_amiga.css +104 -0
- data/site/src/css/pastels_on_dark.css +188 -0
- data/site/src/css/reset.css +55 -0
- data/site/src/css/slush_poppies.css +85 -0
- data/site/src/css/spacecadet.css +51 -0
- data/site/src/css/sunburst.css +180 -0
- data/site/src/css/twilight.css +137 -0
- data/site/src/css/zenburnesque.css +91 -0
- data/site/src/get/index.haml +32 -0
- data/site/src/helpers.rb +121 -0
- data/site/src/images/amp_logo.png +0 -0
- data/site/src/images/carbonica.png +0 -0
- data/site/src/images/revolution.png +0 -0
- data/site/src/images/tab-bg.png +0 -0
- data/site/src/images/tab-sliding-left.png +0 -0
- data/site/src/images/tab-sliding-right.png +0 -0
- data/site/src/include/_footer.haml +22 -0
- data/site/src/include/_header.haml +17 -0
- data/site/src/index.haml +104 -0
- data/site/src/learn/index.haml +46 -0
- data/site/src/scripts/jquery-1.3.2.min.js +19 -0
- data/site/src/scripts/jquery.cookie.js +96 -0
- data/tasks/stats.rake +155 -0
- data/tasks/yard.rake +171 -0
- data/test/dirstate_tests/dirstate +0 -0
- data/test/dirstate_tests/hgrc +5 -0
- data/test/dirstate_tests/test_dir_state.rb +192 -0
- data/test/functional_tests/resources/.hgignore +2 -0
- data/test/functional_tests/resources/STYLE.txt +25 -0
- data/test/functional_tests/resources/command.rb +372 -0
- data/test/functional_tests/resources/commands/annotate.rb +57 -0
- data/test/functional_tests/resources/commands/experimental/lolcats.rb +17 -0
- data/test/functional_tests/resources/commands/heads.rb +22 -0
- data/test/functional_tests/resources/commands/manifest.rb +12 -0
- data/test/functional_tests/resources/commands/status.rb +90 -0
- data/test/functional_tests/resources/version2/.hgignore +5 -0
- data/test/functional_tests/resources/version2/STYLE.txt +25 -0
- data/test/functional_tests/resources/version2/command.rb +372 -0
- data/test/functional_tests/resources/version2/commands/annotate.rb +45 -0
- data/test/functional_tests/resources/version2/commands/experimental/lolcats.rb +17 -0
- data/test/functional_tests/resources/version2/commands/heads.rb +22 -0
- data/test/functional_tests/resources/version2/commands/manifest.rb +12 -0
- data/test/functional_tests/resources/version2/commands/status.rb +90 -0
- data/test/functional_tests/resources/version3/.hgignore +5 -0
- data/test/functional_tests/resources/version3/STYLE.txt +31 -0
- data/test/functional_tests/resources/version3/command.rb +376 -0
- data/test/functional_tests/resources/version3/commands/annotate.rb +45 -0
- data/test/functional_tests/resources/version3/commands/experimental/lolcats.rb +17 -0
- data/test/functional_tests/resources/version3/commands/heads.rb +22 -0
- data/test/functional_tests/resources/version3/commands/manifest.rb +12 -0
- data/test/functional_tests/resources/version3/commands/status.rb +90 -0
- data/test/functional_tests/resources/version4/.hgignore +5 -0
- data/test/functional_tests/resources/version4/STYLE.txt +31 -0
- data/test/functional_tests/resources/version4/command.rb +376 -0
- data/test/functional_tests/resources/version4/commands/experimental/lolcats.rb +17 -0
- data/test/functional_tests/resources/version4/commands/heads.rb +22 -0
- data/test/functional_tests/resources/version4/commands/manifest.rb +12 -0
- data/test/functional_tests/resources/version4/commands/stats.rb +25 -0
- data/test/functional_tests/resources/version4/commands/status.rb +90 -0
- data/test/functional_tests/resources/version5_1/.hgignore +5 -0
- data/test/functional_tests/resources/version5_1/STYLE.txt +2 -0
- data/test/functional_tests/resources/version5_1/command.rb +374 -0
- data/test/functional_tests/resources/version5_1/commands/experimental/lolcats.rb +17 -0
- data/test/functional_tests/resources/version5_1/commands/heads.rb +22 -0
- data/test/functional_tests/resources/version5_1/commands/manifest.rb +12 -0
- data/test/functional_tests/resources/version5_1/commands/stats.rb +25 -0
- data/test/functional_tests/resources/version5_1/commands/status.rb +90 -0
- data/test/functional_tests/resources/version5_2/.hgignore +5 -0
- data/test/functional_tests/resources/version5_2/STYLE.txt +14 -0
- data/test/functional_tests/resources/version5_2/command.rb +376 -0
- data/test/functional_tests/resources/version5_2/commands/experimental/lolcats.rb +17 -0
- data/test/functional_tests/resources/version5_2/commands/manifest.rb +12 -0
- data/test/functional_tests/resources/version5_2/commands/newz.rb +12 -0
- data/test/functional_tests/resources/version5_2/commands/stats.rb +25 -0
- data/test/functional_tests/resources/version5_2/commands/status.rb +90 -0
- data/test/functional_tests/test_functional.rb +604 -0
- data/test/localrepo_tests/test_local_repo.rb +121 -0
- data/test/localrepo_tests/testrepo.tar.gz +0 -0
- data/test/manifest_tests/00manifest.i +0 -0
- data/test/manifest_tests/test_manifest.rb +72 -0
- data/test/merge_tests/base.txt +10 -0
- data/test/merge_tests/expected.local.txt +16 -0
- data/test/merge_tests/local.txt +11 -0
- data/test/merge_tests/remote.txt +11 -0
- data/test/merge_tests/test_merge.rb +26 -0
- data/test/revlog_tests/00changelog.i +0 -0
- data/test/revlog_tests/revision_added_changelog.i +0 -0
- data/test/revlog_tests/test_adding_index.i +0 -0
- data/test/revlog_tests/test_revlog.rb +333 -0
- data/test/revlog_tests/testindex.i +0 -0
- data/test/store_tests/store.tar.gz +0 -0
- data/test/store_tests/test_fncache_store.rb +122 -0
- data/test/test_amp.rb +9 -0
- data/test/test_base85.rb +14 -0
- data/test/test_bdiff.rb +42 -0
- data/test/test_commands.rb +122 -0
- data/test/test_difflib.rb +50 -0
- data/test/test_helper.rb +15 -0
- data/test/test_journal.rb +29 -0
- data/test/test_match.rb +134 -0
- data/test/test_mdiff.rb +74 -0
- data/test/test_mpatch.rb +14 -0
- data/test/test_support.rb +24 -0
- metadata +385 -0
@@ -0,0 +1,28 @@
|
|
1
|
+
- total_name = ""
|
2
|
+
%a.pagebutton{:href => "/code/#{changeset_node}/#{total_name}"} /
|
3
|
+
- parts = path.split("/").map {|p| p + '/' }
|
4
|
+
- parts.last.chop! if vf_cur && parts.last
|
5
|
+
- parts.each do |item|
|
6
|
+
- total_name += item
|
7
|
+
= link_to_file root, changeset_node, total_name, :text => item, :style => "clear:none;", :class => "pagebutton"
|
8
|
+
|
9
|
+
%table.browser-list
|
10
|
+
%tr
|
11
|
+
%th.filename Filename
|
12
|
+
%th.date Date
|
13
|
+
%th.message Message
|
14
|
+
- file_list.each do |file|
|
15
|
+
%tr{:class => (path + "/" + file[:link] == orig_path) ? "selected" : ""}
|
16
|
+
- if file[:type] == :file
|
17
|
+
- fl = repo.file(path + '/' + file[:name])
|
18
|
+
- last = fl.index[-2].link_rev
|
19
|
+
%td.filename
|
20
|
+
= link_to_file root, changeset_node, file[:link], :text => file[:name]
|
21
|
+
%td.date
|
22
|
+
- if file[:type] == :file
|
23
|
+
= rel_date repo[last].easy_date
|
24
|
+
%td.message
|
25
|
+
- if file[:type] == :directory
|
26
|
+
%i (directory)
|
27
|
+
- else
|
28
|
+
= repo[last].description
|
@@ -0,0 +1,13 @@
|
|
1
|
+
- vf_cur = changeset.get_file file
|
2
|
+
- new_rev = vf_cur.file_rev
|
3
|
+
- parents = vf_cur.parents
|
4
|
+
- vf_parent = parents.first
|
5
|
+
- parent_rev = vf_parent && vf_parent.file_rev
|
6
|
+
- old_date = vf_parent && vf_parent.changeset.easy_date
|
7
|
+
- new_date = changeset.easy_date
|
8
|
+
- new_path = vf_cur.path
|
9
|
+
- old_path = vf_parent ? vf_parent.path : "/dev/null"
|
10
|
+
%li
|
11
|
+
%h2= vf_cur.path
|
12
|
+
%ul.diff
|
13
|
+
= parse_diff(vf_cur.file_log.unified_revision_diff(parent_rev, old_date, new_rev, new_date, old_path, new_path))
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#navbar
|
2
|
+
%ul
|
3
|
+
%li{:class => (selected == "commits" ? "selected" : "")}
|
4
|
+
%a{:href => root+"/commits/"} Commits
|
5
|
+
%li
|
6
|
+
= link_to_file root, "tip", nil, :text => "Latest Source"
|
7
|
+
- if defined?(changeset) && changeset
|
8
|
+
%li
|
9
|
+
%li{:class => "selected"}== Changeset: #{changeset.revision}
|
10
|
+
%li= link_to_changeset root, changeset.node_id.hexlify, :text => "Overview"
|
11
|
+
%li= link_to_file root, changeset.node_id.hexlify, nil, :text => "Browse Source"
|
12
|
+
- if defined?(file) && file
|
13
|
+
%li
|
14
|
+
%li{:class => "selected"}== #{file.path.split('/').last}
|
15
|
+
%li= link_to_file root, changeset.node_id.hexlify, file.path, :text => "Source"
|
16
|
+
%li= link_to_file_raw root, changeset.node_id.hexlify, file.path, :text => "Raw"
|
17
|
+
%li= link_to_file_diff root, changeset.node_id.hexlify, file.path, :text => "Diff"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title== Changeset: #{@changeset.node_id.hexlify[0..9]}
|
5
|
+
%link{:rel => "stylesheet", :href => "/stylesheet.css"}
|
6
|
+
%body
|
7
|
+
#main_container
|
8
|
+
= haml :_navbar, :locals => {:root => root, :selected => "overview", :changeset => @changeset}
|
9
|
+
#main
|
10
|
+
%h2.header== Changeset #{@changeset.revision}:#{@changeset.node_id.hexlify[0..11]}
|
11
|
+
.changeset-desc
|
12
|
+
%blockquote= @changeset.description
|
13
|
+
%table.two-column
|
14
|
+
%tr
|
15
|
+
%td.label author
|
16
|
+
%td.data= @changeset.user
|
17
|
+
%tr
|
18
|
+
%td.label date
|
19
|
+
%td.data== #{@changeset.easy_date.to_s} (#{rel_date(@changeset.easy_date)})
|
20
|
+
%tr
|
21
|
+
%td.label parents
|
22
|
+
%td.data= @changeset.parents.map { |p| link_to_changeset(root, p.node_id.hexlify) }.join(" ")
|
23
|
+
%tr
|
24
|
+
%td.label children
|
25
|
+
%td.data= @changeset.children.map {|c| link_to_changeset(root, c.node_id.hexlify) }.join(" ")
|
26
|
+
%tr
|
27
|
+
%td.label files
|
28
|
+
%td.data= @changeset.files.map {|file| link_to_file(root, @changeset.node_id.hexlify, file) }.join("<br />")
|
29
|
+
%ul.diff-list
|
30
|
+
- @changeset.files.each do |file|
|
31
|
+
= haml :_diff_file, :locals => {:file => file, :changeset => @changeset}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title== Overview: #{opts[:title]}
|
5
|
+
%link{:rel => "stylesheet", :href => "/stylesheet.css"}
|
6
|
+
%body
|
7
|
+
#main_container
|
8
|
+
= haml :_navbar, :locals => {:root => root, :selected => "commits"}
|
9
|
+
#main
|
10
|
+
- page = 1 if page == 0
|
11
|
+
- start = (repo.size - 1) - ((page - 1) * 20)
|
12
|
+
%br/
|
13
|
+
- if page > 1
|
14
|
+
%a.pagebutton{:href => "/commits/#{page-1}/"} Previous Page
|
15
|
+
- if start > 21
|
16
|
+
%a.pagebutton{:href => "/commits/#{page+1}/"} Next Page
|
17
|
+
%table.shortlog
|
18
|
+
%tr
|
19
|
+
%th.index Rev. #
|
20
|
+
%th.date Date
|
21
|
+
%th.user User
|
22
|
+
%th.description Description
|
23
|
+
- (start).downto(start - 21) do |val|
|
24
|
+
- cs = repo[val]
|
25
|
+
%tr
|
26
|
+
%td.index= val
|
27
|
+
%td.date= rel_date Time.at(cs.date.first)
|
28
|
+
- user = cs.user =~ /\@/ ? cs.user.split(/@/).first : cs.user
|
29
|
+
%td.user= user
|
30
|
+
%td.description
|
31
|
+
= link_to_changeset root, cs.node_id.hexlify, :text => cs.description
|
32
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title== Browsing Source: #{path}
|
5
|
+
%link{:rel => "stylesheet", :href => "/stylesheet.css"}
|
6
|
+
%link{:rel => "stylesheet", :href => "/harshcss/twilight.css"}
|
7
|
+
%body
|
8
|
+
#main_container
|
9
|
+
= haml :_navbar, :locals => {:root => root, :selected => "browser", :changeset => changeset, :file => vf_cur}
|
10
|
+
#main
|
11
|
+
- changeset_node = changeset.node_id.hexlify[0..11]
|
12
|
+
|
13
|
+
= haml :_browser, :locals => {:root => root, :vf_cur => vf_cur, :path => path, :orig_path => orig_path, :file_list => file_list, :changeset_node => changeset_node, :repo => repo}
|
14
|
+
.browser-file
|
15
|
+
- if vf_cur
|
16
|
+
- filelog = repo.file orig_path
|
17
|
+
%h2.header Versions
|
18
|
+
%ul.versions
|
19
|
+
- filelog.each do |rev|
|
20
|
+
%li
|
21
|
+
%a{:href => "/code/#{repo.changelog.node(rev.link_rev).hexlify[0..11]}/#{orig_path}"}== #{rev.link_rev}: #{repo[rev.link_rev].easy_date.strftime("%m/%d/%Y")}
|
22
|
+
%h2.header== Source Revision #{vf_cur.revision}
|
23
|
+
.source-holder
|
24
|
+
- format = format_for_filename File.basename(orig_path)
|
25
|
+
- if format == :markdown
|
26
|
+
:markdown
|
27
|
+
#{vf_cur.data}
|
28
|
+
- elsif format == :textile
|
29
|
+
:textile
|
30
|
+
#{vf_cur.data}
|
31
|
+
- elsif format == :text
|
32
|
+
%pre
|
33
|
+
= "\t"+vf_cur.data
|
34
|
+
- else
|
35
|
+
= highlight_text vf_cur.data, :lines => true, :format => format, :theme => "twilight"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
!!!
|
2
|
+
%html
|
3
|
+
%head
|
4
|
+
%title== Diff of #{path} @ Revision #{changeset.revision}
|
5
|
+
%link{:rel => "stylesheet", :href => "/stylesheet.css"}
|
6
|
+
%link{:rel => "stylesheet", :href => "/harshcss/twilight.css"}
|
7
|
+
%body
|
8
|
+
#main_container
|
9
|
+
= haml :_navbar, :locals => {:root => root, :selected => "browser", :changeset => changeset, :file => vf_cur}
|
10
|
+
#main
|
11
|
+
- changeset_node = changeset.node_id.hexlify[0..11]
|
12
|
+
|
13
|
+
= haml :_browser, :locals => {:root => root, :vf_cur => vf_cur, :path => path, :orig_path => orig_path, :file_list => file_list, :changeset_node => changeset_node, :repo => repo}
|
14
|
+
.browser-file
|
15
|
+
- if vf_cur
|
16
|
+
- filelog = repo.file orig_path
|
17
|
+
%h2.header Versions
|
18
|
+
%ul.versions
|
19
|
+
- filelog.each do |rev|
|
20
|
+
%li
|
21
|
+
= link_to_file_diff root, repo.changelog.node(rev.link_rev).hexlify, orig_path, :text => "#{rev.link_rev}: #{repo[rev.link_rev].easy_date.strftime("%m/%d/%Y")}"
|
22
|
+
%h2.header== Diff @ Revision #{vf_cur.revision}
|
23
|
+
= haml :_diff_file, :locals => {:file => orig_path, :changeset => changeset}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
pre.all_hallows_eve .ClassInheritance {
|
2
|
+
font-style: italic;
|
3
|
+
}
|
4
|
+
pre.all_hallows_eve .Constant {
|
5
|
+
color: #3387CC;
|
6
|
+
}
|
7
|
+
pre.all_hallows_eve .TypeName {
|
8
|
+
text-decoration: underline;
|
9
|
+
}
|
10
|
+
pre.all_hallows_eve .TextBase {
|
11
|
+
background-color: #434242;
|
12
|
+
color: #FFFFFF;
|
13
|
+
}
|
14
|
+
pre.all_hallows_eve {
|
15
|
+
background-color: #000000;
|
16
|
+
color: #FFFFFF;
|
17
|
+
}
|
18
|
+
pre.all_hallows_eve .StringEscapesExecuted {
|
19
|
+
color: #555555;
|
20
|
+
}
|
21
|
+
pre.all_hallows_eve .line-numbers {
|
22
|
+
background-color: #73597E;
|
23
|
+
color: #FFFFFF;
|
24
|
+
}
|
25
|
+
pre.all_hallows_eve .StringExecuted {
|
26
|
+
background-color: #CCCC33;
|
27
|
+
color: #000000;
|
28
|
+
}
|
29
|
+
pre.all_hallows_eve .BlockComment {
|
30
|
+
background-color: #9B9B9B;
|
31
|
+
color: #FFFFFF;
|
32
|
+
}
|
33
|
+
pre.all_hallows_eve .TagName {
|
34
|
+
text-decoration: underline;
|
35
|
+
}
|
36
|
+
pre.all_hallows_eve .PreProcessorLine {
|
37
|
+
color: #D0D0FF;
|
38
|
+
}
|
39
|
+
pre.all_hallows_eve .SupportFunction {
|
40
|
+
color: #C83730;
|
41
|
+
}
|
42
|
+
pre.all_hallows_eve .FunctionArgument {
|
43
|
+
font-style: italic;
|
44
|
+
}
|
45
|
+
pre.all_hallows_eve .PreProcessorDirective {
|
46
|
+
}
|
47
|
+
pre.all_hallows_eve .StringEscapes {
|
48
|
+
color: #AAAAAA;
|
49
|
+
}
|
50
|
+
pre.all_hallows_eve .SourceBase {
|
51
|
+
background-color: #000000;
|
52
|
+
color: #FFFFFF;
|
53
|
+
}
|
54
|
+
pre.all_hallows_eve .TagAttribute {
|
55
|
+
}
|
56
|
+
pre.all_hallows_eve .StringLiteral {
|
57
|
+
color: #CCCC33;
|
58
|
+
}
|
59
|
+
pre.all_hallows_eve .String {
|
60
|
+
color: #66CC33;
|
61
|
+
}
|
62
|
+
pre.all_hallows_eve .Keyword {
|
63
|
+
color: #CC7833;
|
64
|
+
}
|
65
|
+
pre.all_hallows_eve .RegularExpression {
|
66
|
+
color: #CCCC33;
|
67
|
+
}
|
68
|
+
pre.all_hallows_eve .FunctionName {
|
69
|
+
}
|
70
|
+
pre.all_hallows_eve .Comment {
|
71
|
+
color: #9933CC;
|
72
|
+
}
|
@@ -0,0 +1,147 @@
|
|
1
|
+
pre.amy .PolymorphicVariants {
|
2
|
+
color: #60B0FF;
|
3
|
+
font-style: italic;
|
4
|
+
}
|
5
|
+
pre.amy .KeywordDecorator {
|
6
|
+
color: #D0D0FF;
|
7
|
+
}
|
8
|
+
pre.amy .Punctuation {
|
9
|
+
color: #805080;
|
10
|
+
}
|
11
|
+
pre.amy .InheritedClass {
|
12
|
+
}
|
13
|
+
pre.amy .InvalidDepricated {
|
14
|
+
background-color: #CC66FF;
|
15
|
+
color: #200020;
|
16
|
+
}
|
17
|
+
pre.amy .LibraryVariable {
|
18
|
+
}
|
19
|
+
pre.amy .TokenReferenceOcamlyacc {
|
20
|
+
color: #3CB0D0;
|
21
|
+
}
|
22
|
+
pre.amy .Storage {
|
23
|
+
color: #B0FFF0;
|
24
|
+
}
|
25
|
+
pre.amy .KeywordOperator {
|
26
|
+
color: #A0A0FF;
|
27
|
+
}
|
28
|
+
pre.amy .CharacterConstant {
|
29
|
+
color: #666666;
|
30
|
+
}
|
31
|
+
pre.amy .line-numbers {
|
32
|
+
background-color: #800000;
|
33
|
+
color: #000000;
|
34
|
+
}
|
35
|
+
pre.amy .ClassName {
|
36
|
+
color: #70E080;
|
37
|
+
}
|
38
|
+
pre.amy .Int64Constant {
|
39
|
+
font-style: italic;
|
40
|
+
}
|
41
|
+
pre.amy .NonTerminalReferenceOcamlyacc {
|
42
|
+
color: #C0F0F0;
|
43
|
+
}
|
44
|
+
pre.amy .TokenDefinitionOcamlyacc {
|
45
|
+
color: #3080A0;
|
46
|
+
}
|
47
|
+
pre.amy .ClassType {
|
48
|
+
color: #70E0A0;
|
49
|
+
}
|
50
|
+
pre.amy .ControlKeyword {
|
51
|
+
color: #80A0FF;
|
52
|
+
}
|
53
|
+
pre.amy .LineNumberDirectives {
|
54
|
+
text-decoration: underline;
|
55
|
+
color: #C080C0;
|
56
|
+
}
|
57
|
+
pre.amy .FloatingPointConstant {
|
58
|
+
text-decoration: underline;
|
59
|
+
}
|
60
|
+
pre.amy .Int32Constant {
|
61
|
+
font-weight: bold;
|
62
|
+
}
|
63
|
+
pre.amy .TagName {
|
64
|
+
color: #009090;
|
65
|
+
}
|
66
|
+
pre.amy .ModuleTypeDefinitions {
|
67
|
+
text-decoration: underline;
|
68
|
+
color: #B000B0;
|
69
|
+
}
|
70
|
+
pre.amy .Integer {
|
71
|
+
color: #7090B0;
|
72
|
+
}
|
73
|
+
pre.amy .Camlp4TempParser {
|
74
|
+
}
|
75
|
+
pre.amy .InvalidIllegal {
|
76
|
+
font-weight: bold;
|
77
|
+
background-color: #FFFF00;
|
78
|
+
color: #400080;
|
79
|
+
}
|
80
|
+
pre.amy .LibraryConstant {
|
81
|
+
background-color: #200020;
|
82
|
+
}
|
83
|
+
pre.amy .ModuleDefinitions {
|
84
|
+
color: #B000B0;
|
85
|
+
}
|
86
|
+
pre.amy .Variants {
|
87
|
+
color: #60B0FF;
|
88
|
+
}
|
89
|
+
pre.amy .CompilerDirectives {
|
90
|
+
color: #C080C0;
|
91
|
+
}
|
92
|
+
pre.amy .FloatingPointInfixOperator {
|
93
|
+
text-decoration: underline;
|
94
|
+
}
|
95
|
+
pre.amy .BuiltInConstant1 {
|
96
|
+
}
|
97
|
+
pre.amy {
|
98
|
+
background-color: #200020;
|
99
|
+
color: #D0D0FF;
|
100
|
+
}
|
101
|
+
pre.amy .FunctionArgument {
|
102
|
+
color: #80B0B0;
|
103
|
+
}
|
104
|
+
pre.amy .FloatingPointPrefixOperator {
|
105
|
+
text-decoration: underline;
|
106
|
+
}
|
107
|
+
pre.amy .NativeintConstant {
|
108
|
+
font-weight: bold;
|
109
|
+
}
|
110
|
+
pre.amy .BuiltInConstant {
|
111
|
+
color: #707090;
|
112
|
+
}
|
113
|
+
pre.amy .BooleanConstant {
|
114
|
+
color: #8080A0;
|
115
|
+
}
|
116
|
+
pre.amy .LibraryClassType {
|
117
|
+
}
|
118
|
+
pre.amy .TagAttribute {
|
119
|
+
}
|
120
|
+
pre.amy .Keyword {
|
121
|
+
color: #A080FF;
|
122
|
+
}
|
123
|
+
pre.amy .UserDefinedConstant {
|
124
|
+
}
|
125
|
+
pre.amy .String {
|
126
|
+
color: #999999;
|
127
|
+
}
|
128
|
+
pre.amy .Camlp4Code {
|
129
|
+
background-color: #350060;
|
130
|
+
}
|
131
|
+
pre.amy .NonTerminalDefinitionOcamlyacc {
|
132
|
+
color: #90E0E0;
|
133
|
+
}
|
134
|
+
pre.amy .FunctionName {
|
135
|
+
color: #50A0A0;
|
136
|
+
}
|
137
|
+
pre.amy .SupportModules {
|
138
|
+
color: #A00050;
|
139
|
+
}
|
140
|
+
pre.amy .Variable {
|
141
|
+
color: #008080;
|
142
|
+
}
|
143
|
+
pre.amy .Comment {
|
144
|
+
background-color: #200020;
|
145
|
+
color: #404080;
|
146
|
+
font-style: italic;
|
147
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
pre.twilight .DiffInserted {
|
2
|
+
background-color: #253B22;
|
3
|
+
color: #F8F8F8;
|
4
|
+
}
|
5
|
+
pre.twilight .DiffHeader {
|
6
|
+
background-color: #0E2231;
|
7
|
+
color: #F8F8F8;
|
8
|
+
font-style: italic;
|
9
|
+
}
|
10
|
+
pre.twilight .CssPropertyValue {
|
11
|
+
color: #F9EE98;
|
12
|
+
}
|
13
|
+
pre.twilight .CCCPreprocessorDirective {
|
14
|
+
color: #AFC4DB;
|
15
|
+
}
|
16
|
+
pre.twilight .Constant {
|
17
|
+
color: #CF6A4C;
|
18
|
+
}
|
19
|
+
pre.twilight .DiffChanged {
|
20
|
+
background-color: #4A410D;
|
21
|
+
color: #F8F8F8;
|
22
|
+
}
|
23
|
+
pre.twilight .EmbeddedSource {
|
24
|
+
background-color: #A3A6AD;
|
25
|
+
}
|
26
|
+
pre.twilight .Support {
|
27
|
+
color: #9B859D;
|
28
|
+
}
|
29
|
+
pre.twilight .MarkupList {
|
30
|
+
color: #F9EE98;
|
31
|
+
}
|
32
|
+
pre.twilight .CssConstructorArgument {
|
33
|
+
color: #8F9D6A;
|
34
|
+
}
|
35
|
+
pre.twilight .Storage {
|
36
|
+
color: #F9EE98;
|
37
|
+
}
|
38
|
+
pre.twilight .line-numbers {
|
39
|
+
background-color: #DDF0FF;
|
40
|
+
color: #000000;
|
41
|
+
}
|
42
|
+
pre.twilight .CssClass {
|
43
|
+
color: #9B703F;
|
44
|
+
}
|
45
|
+
pre.twilight .StringConstant {
|
46
|
+
color: #DDF2A4;
|
47
|
+
}
|
48
|
+
pre.twilight .CssAtRule {
|
49
|
+
color: #8693A5;
|
50
|
+
}
|
51
|
+
pre.twilight .MetaTagInline {
|
52
|
+
color: #E0C589;
|
53
|
+
}
|
54
|
+
pre.twilight .MarkupHeading {
|
55
|
+
color: #CF6A4C;
|
56
|
+
}
|
57
|
+
pre.twilight .CssTagName {
|
58
|
+
color: #CDA869;
|
59
|
+
}
|
60
|
+
pre.twilight .SupportConstant {
|
61
|
+
color: #CF6A4C;
|
62
|
+
}
|
63
|
+
pre.twilight .DiffDeleted {
|
64
|
+
background-color: #420E09;
|
65
|
+
color: #F8F8F8;
|
66
|
+
}
|
67
|
+
pre.twilight .CCCPreprocessorLine {
|
68
|
+
color: #8996A8;
|
69
|
+
}
|
70
|
+
pre.twilight .StringRegexpSpecial {
|
71
|
+
color: #CF7D34;
|
72
|
+
}
|
73
|
+
pre.twilight .EmbeddedSourceBright {
|
74
|
+
background-color: #9C9EA4;
|
75
|
+
}
|
76
|
+
pre.twilight .InvalidIllegal {
|
77
|
+
background-color: #241A24;
|
78
|
+
color: #F8F8F8;
|
79
|
+
}
|
80
|
+
pre.twilight .SupportFunction {
|
81
|
+
color: #DAD085;
|
82
|
+
}
|
83
|
+
pre.twilight .CssAdditionalConstants {
|
84
|
+
color: #CA7840;
|
85
|
+
}
|
86
|
+
pre.twilight .MetaTagAll {
|
87
|
+
color: #AC885B;
|
88
|
+
}
|
89
|
+
pre.twilight .StringRegexp {
|
90
|
+
color: #E9C062;
|
91
|
+
}
|
92
|
+
pre.twilight .StringEmbeddedSource {
|
93
|
+
color: #DAEFA3;
|
94
|
+
}
|
95
|
+
pre.twilight .EntityInheritedClass {
|
96
|
+
color: #9B5C2E;
|
97
|
+
font-style: italic;
|
98
|
+
}
|
99
|
+
pre.twilight .CssId {
|
100
|
+
color: #8B98AB;
|
101
|
+
}
|
102
|
+
pre.twilight .CssPseudoClass {
|
103
|
+
color: #8F9D6A;
|
104
|
+
}
|
105
|
+
pre.twilight .StringVariable {
|
106
|
+
color: #8A9A95;
|
107
|
+
}
|
108
|
+
pre.twilight .String {
|
109
|
+
color: #8F9D6A;
|
110
|
+
}
|
111
|
+
pre.twilight .Keyword {
|
112
|
+
color: #CDA869;
|
113
|
+
}
|
114
|
+
pre.twilight {
|
115
|
+
background-color: #141414;
|
116
|
+
color: #F8F8F8;
|
117
|
+
font-family: Monaco, "Courier New", Courier;
|
118
|
+
}
|
119
|
+
pre.twilight .CssPropertyName {
|
120
|
+
color: #C5AF75;
|
121
|
+
}
|
122
|
+
pre.twilight .DoctypeXmlProcessing {
|
123
|
+
color: #494949;
|
124
|
+
}
|
125
|
+
pre.twilight .InvalidDeprecated {
|
126
|
+
color: #D2A8A1;
|
127
|
+
font-style: italic;
|
128
|
+
}
|
129
|
+
pre.twilight .Variable {
|
130
|
+
color: #7587A6;
|
131
|
+
}
|
132
|
+
pre.twilight .Entity {
|
133
|
+
color: #9B703F;
|
134
|
+
}
|
135
|
+
pre.twilight .Comment {
|
136
|
+
color: #5F5A60;
|
137
|
+
font-style: italic;
|
138
|
+
}
|