amp 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (232) hide show
  1. data/.gitignore +12 -0
  2. data/.hgignore +3 -0
  3. data/AUTHORS +1 -1
  4. data/Manifest.txt +99 -38
  5. data/README.md +3 -3
  6. data/Rakefile +53 -18
  7. data/SCHEDULE.markdown +5 -1
  8. data/TODO.markdown +120 -149
  9. data/ampfile.rb +3 -1
  10. data/bin/amp +4 -1
  11. data/ext/amp/bz2/extconf.rb +1 -1
  12. data/ext/amp/mercurial_patch/extconf.rb +1 -1
  13. data/ext/amp/mercurial_patch/mpatch.c +4 -3
  14. data/ext/amp/priority_queue/extconf.rb +1 -1
  15. data/ext/amp/support/extconf.rb +1 -1
  16. data/ext/amp/support/support.c +1 -1
  17. data/lib/amp.rb +125 -67
  18. data/lib/amp/commands/command.rb +12 -10
  19. data/lib/amp/commands/command_support.rb +8 -1
  20. data/lib/amp/commands/commands/help.rb +2 -20
  21. data/lib/amp/commands/commands/init.rb +14 -2
  22. data/lib/amp/commands/commands/templates.rb +6 -4
  23. data/lib/amp/commands/commands/version.rb +15 -1
  24. data/lib/amp/commands/commands/workflow.rb +3 -3
  25. data/lib/amp/commands/commands/workflows/git/add.rb +3 -3
  26. data/lib/amp/commands/commands/workflows/git/copy.rb +1 -1
  27. data/lib/amp/commands/commands/workflows/git/rm.rb +4 -2
  28. data/lib/amp/commands/commands/workflows/hg/add.rb +1 -1
  29. data/lib/amp/commands/commands/workflows/hg/addremove.rb +2 -2
  30. data/lib/amp/commands/commands/workflows/hg/annotate.rb +8 -2
  31. data/lib/amp/commands/commands/workflows/hg/bisect.rb +253 -0
  32. data/lib/amp/commands/commands/workflows/hg/branch.rb +1 -1
  33. data/lib/amp/commands/commands/workflows/hg/branches.rb +3 -3
  34. data/lib/amp/commands/commands/workflows/hg/bundle.rb +3 -3
  35. data/lib/amp/commands/commands/workflows/hg/clone.rb +4 -5
  36. data/lib/amp/commands/commands/workflows/hg/commit.rb +37 -1
  37. data/lib/amp/commands/commands/workflows/hg/copy.rb +2 -1
  38. data/lib/amp/commands/commands/workflows/hg/debug/index.rb +1 -1
  39. data/lib/amp/commands/commands/workflows/hg/diff.rb +3 -8
  40. data/lib/amp/commands/commands/workflows/hg/forget.rb +5 -4
  41. data/lib/amp/commands/commands/workflows/hg/identify.rb +6 -6
  42. data/lib/amp/commands/commands/workflows/hg/import.rb +1 -1
  43. data/lib/amp/commands/commands/workflows/hg/incoming.rb +2 -2
  44. data/lib/amp/commands/commands/workflows/hg/log.rb +5 -4
  45. data/lib/amp/commands/commands/workflows/hg/merge.rb +1 -1
  46. data/lib/amp/commands/commands/workflows/hg/move.rb +5 -3
  47. data/lib/amp/commands/commands/workflows/hg/outgoing.rb +1 -1
  48. data/lib/amp/commands/commands/workflows/hg/push.rb +6 -7
  49. data/lib/amp/commands/commands/workflows/hg/remove.rb +2 -2
  50. data/lib/amp/commands/commands/workflows/hg/resolve.rb +6 -23
  51. data/lib/amp/commands/commands/workflows/hg/root.rb +1 -2
  52. data/lib/amp/commands/commands/workflows/hg/status.rb +21 -12
  53. data/lib/amp/commands/commands/workflows/hg/tag.rb +2 -2
  54. data/lib/amp/commands/commands/workflows/hg/untrack.rb +12 -0
  55. data/lib/amp/commands/commands/workflows/hg/verify.rb +13 -3
  56. data/lib/amp/commands/commands/workflows/hg/what_changed.rb +18 -0
  57. data/lib/amp/commands/dispatch.rb +12 -13
  58. data/lib/amp/dependencies/amp_support.rb +1 -1
  59. data/lib/amp/dependencies/amp_support/ruby_amp_support.rb +1 -0
  60. data/lib/amp/dependencies/maruku.rb +136 -0
  61. data/lib/amp/dependencies/maruku/attributes.rb +227 -0
  62. data/lib/amp/dependencies/maruku/defaults.rb +71 -0
  63. data/lib/amp/dependencies/maruku/errors_management.rb +92 -0
  64. data/lib/amp/dependencies/maruku/helpers.rb +260 -0
  65. data/lib/amp/dependencies/maruku/input/charsource.rb +326 -0
  66. data/lib/amp/dependencies/maruku/input/extensions.rb +69 -0
  67. data/lib/amp/dependencies/maruku/input/html_helper.rb +189 -0
  68. data/lib/amp/dependencies/maruku/input/linesource.rb +111 -0
  69. data/lib/amp/dependencies/maruku/input/parse_block.rb +615 -0
  70. data/lib/amp/dependencies/maruku/input/parse_doc.rb +234 -0
  71. data/lib/amp/dependencies/maruku/input/parse_span_better.rb +746 -0
  72. data/lib/amp/dependencies/maruku/input/rubypants.rb +225 -0
  73. data/lib/amp/dependencies/maruku/input/type_detection.rb +147 -0
  74. data/lib/amp/dependencies/maruku/input_textile2/t2_parser.rb +163 -0
  75. data/lib/amp/dependencies/maruku/maruku.rb +33 -0
  76. data/lib/amp/dependencies/maruku/output/to_ansi.rb +223 -0
  77. data/lib/amp/dependencies/maruku/output/to_html.rb +991 -0
  78. data/lib/amp/dependencies/maruku/output/to_markdown.rb +164 -0
  79. data/lib/amp/dependencies/maruku/output/to_s.rb +56 -0
  80. data/lib/amp/dependencies/maruku/string_utils.rb +191 -0
  81. data/lib/amp/dependencies/maruku/structures.rb +167 -0
  82. data/lib/amp/dependencies/maruku/structures_inspect.rb +87 -0
  83. data/lib/amp/dependencies/maruku/structures_iterators.rb +61 -0
  84. data/lib/amp/dependencies/maruku/textile2.rb +1 -0
  85. data/lib/amp/dependencies/maruku/toc.rb +199 -0
  86. data/lib/amp/dependencies/maruku/usage/example1.rb +33 -0
  87. data/lib/amp/dependencies/maruku/version.rb +40 -0
  88. data/lib/amp/dependencies/priority_queue.rb +2 -1
  89. data/lib/amp/dependencies/python_config.rb +2 -1
  90. data/lib/amp/graphs/ancestor.rb +2 -1
  91. data/lib/amp/graphs/copies.rb +236 -233
  92. data/lib/amp/help/entries/__default__.erb +31 -0
  93. data/lib/amp/help/entries/commands.erb +6 -0
  94. data/lib/amp/help/entries/mdtest.md +35 -0
  95. data/lib/amp/help/entries/silly +3 -0
  96. data/lib/amp/help/help.rb +288 -0
  97. data/lib/amp/profiling_hacks.rb +5 -3
  98. data/lib/amp/repository/abstract/abstract_changeset.rb +97 -0
  99. data/lib/amp/repository/abstract/abstract_local_repo.rb +181 -0
  100. data/lib/amp/repository/abstract/abstract_staging_area.rb +180 -0
  101. data/lib/amp/repository/abstract/abstract_versioned_file.rb +100 -0
  102. data/lib/amp/repository/abstract/common_methods/changeset.rb +75 -0
  103. data/lib/amp/repository/abstract/common_methods/local_repo.rb +277 -0
  104. data/lib/amp/repository/abstract/common_methods/staging_area.rb +233 -0
  105. data/lib/amp/repository/abstract/common_methods/versioned_file.rb +71 -0
  106. data/lib/amp/repository/generic_repo_picker.rb +78 -0
  107. data/lib/amp/repository/git/repo_format/changeset.rb +336 -0
  108. data/lib/amp/repository/git/repo_format/staging_area.rb +192 -0
  109. data/lib/amp/repository/git/repo_format/versioned_file.rb +119 -0
  110. data/lib/amp/repository/git/repositories/local_repository.rb +164 -0
  111. data/lib/amp/repository/git/repository.rb +41 -0
  112. data/lib/amp/repository/mercurial/encoding/mercurial_diff.rb +382 -0
  113. data/lib/amp/repository/mercurial/encoding/mercurial_patch.rb +1 -0
  114. data/lib/amp/repository/mercurial/encoding/patch.rb +294 -0
  115. data/lib/amp/repository/mercurial/encoding/pure_ruby/ruby_mercurial_patch.rb +124 -0
  116. data/lib/amp/repository/mercurial/merging/merge_ui.rb +327 -0
  117. data/lib/amp/repository/mercurial/merging/simple_merge.rb +452 -0
  118. data/lib/amp/repository/mercurial/repo_format/branch_manager.rb +266 -0
  119. data/lib/amp/repository/mercurial/repo_format/changeset.rb +768 -0
  120. data/lib/amp/repository/mercurial/repo_format/dir_state.rb +716 -0
  121. data/lib/amp/repository/mercurial/repo_format/journal.rb +218 -0
  122. data/lib/amp/repository/mercurial/repo_format/lock.rb +210 -0
  123. data/lib/amp/repository/mercurial/repo_format/merge_state.rb +228 -0
  124. data/lib/amp/repository/mercurial/repo_format/staging_area.rb +367 -0
  125. data/lib/amp/repository/mercurial/repo_format/store.rb +487 -0
  126. data/lib/amp/repository/mercurial/repo_format/tag_manager.rb +322 -0
  127. data/lib/amp/repository/mercurial/repo_format/updatable.rb +543 -0
  128. data/lib/amp/repository/mercurial/repo_format/updater.rb +848 -0
  129. data/lib/amp/repository/mercurial/repo_format/verification.rb +433 -0
  130. data/lib/amp/repository/mercurial/repositories/bundle_repository.rb +216 -0
  131. data/lib/amp/repository/mercurial/repositories/http_repository.rb +386 -0
  132. data/lib/amp/repository/mercurial/repositories/local_repository.rb +2034 -0
  133. data/lib/amp/repository/mercurial/repository.rb +119 -0
  134. data/lib/amp/repository/mercurial/revlogs/bundle_revlogs.rb +249 -0
  135. data/lib/amp/repository/mercurial/revlogs/changegroup.rb +217 -0
  136. data/lib/amp/repository/mercurial/revlogs/changelog.rb +339 -0
  137. data/lib/amp/repository/mercurial/revlogs/file_log.rb +152 -0
  138. data/lib/amp/repository/mercurial/revlogs/index.rb +500 -0
  139. data/lib/amp/repository/mercurial/revlogs/manifest.rb +201 -0
  140. data/lib/amp/repository/mercurial/revlogs/node.rb +20 -0
  141. data/lib/amp/repository/mercurial/revlogs/revlog.rb +1026 -0
  142. data/lib/amp/repository/mercurial/revlogs/revlog_support.rb +129 -0
  143. data/lib/amp/repository/mercurial/revlogs/versioned_file.rb +597 -0
  144. data/lib/amp/repository/repository.rb +11 -88
  145. data/lib/amp/server/extension/amp_extension.rb +3 -3
  146. data/lib/amp/server/fancy_http_server.rb +1 -1
  147. data/lib/amp/server/fancy_views/_browser.haml +1 -1
  148. data/lib/amp/server/fancy_views/_diff_file.haml +1 -8
  149. data/lib/amp/server/fancy_views/changeset.haml +2 -2
  150. data/lib/amp/server/fancy_views/file.haml +1 -1
  151. data/lib/amp/server/fancy_views/file_diff.haml +1 -1
  152. data/lib/amp/support/amp_ui.rb +13 -29
  153. data/lib/amp/support/generator.rb +1 -1
  154. data/lib/amp/support/loaders.rb +1 -2
  155. data/lib/amp/support/logger.rb +10 -16
  156. data/lib/amp/support/match.rb +18 -4
  157. data/lib/amp/support/mercurial/ignore.rb +151 -0
  158. data/lib/amp/support/openers.rb +8 -3
  159. data/lib/amp/support/support.rb +91 -46
  160. data/lib/amp/templates/{blank.commit.erb → mercurial/blank.commit.erb} +0 -0
  161. data/lib/amp/templates/{blank.log.erb → mercurial/blank.log.erb} +0 -0
  162. data/lib/amp/templates/{default.commit.erb → mercurial/default.commit.erb} +0 -0
  163. data/lib/amp/templates/{default.log.erb → mercurial/default.log.erb} +0 -0
  164. data/lib/amp/templates/template.rb +18 -18
  165. data/man/amp.1 +51 -0
  166. data/site/src/about/commands.haml +1 -1
  167. data/site/src/css/amp.css +1 -1
  168. data/site/src/index.haml +3 -3
  169. data/tasks/man.rake +39 -0
  170. data/tasks/stats.rake +1 -10
  171. data/tasks/yard.rake +1 -50
  172. data/test/dirstate_tests/test_dir_state.rb +10 -8
  173. data/test/functional_tests/annotate.out +31 -0
  174. data/test/functional_tests/test_functional.rb +155 -63
  175. data/test/localrepo_tests/ampfile.rb +12 -0
  176. data/test/localrepo_tests/test_local_repo.rb +56 -57
  177. data/test/manifest_tests/test_manifest.rb +3 -5
  178. data/test/merge_tests/test_merge.rb +3 -3
  179. data/test/revlog_tests/test_revlog.rb +14 -6
  180. data/test/store_tests/test_fncache_store.rb +19 -19
  181. data/test/test_19_compatibility.rb +46 -0
  182. data/test/test_base85.rb +2 -2
  183. data/test/test_bdiff.rb +2 -2
  184. data/test/test_changegroup.rb +59 -0
  185. data/test/test_commands.rb +2 -2
  186. data/test/test_difflib.rb +2 -2
  187. data/test/test_generator.rb +34 -0
  188. data/test/test_ignore.rb +203 -0
  189. data/test/test_journal.rb +18 -13
  190. data/test/test_match.rb +2 -2
  191. data/test/test_mdiff.rb +3 -3
  192. data/test/test_mpatch.rb +3 -3
  193. data/test/test_multi_io.rb +40 -0
  194. data/test/test_support.rb +18 -2
  195. data/test/test_templates.rb +38 -0
  196. data/test/test_ui.rb +79 -0
  197. data/test/testutilities.rb +56 -0
  198. metadata +168 -49
  199. data/ext/amp/bz2/mkmf.log +0 -38
  200. data/lib/amp/encoding/mercurial_diff.rb +0 -378
  201. data/lib/amp/encoding/mercurial_patch.rb +0 -1
  202. data/lib/amp/encoding/patch.rb +0 -292
  203. data/lib/amp/encoding/pure_ruby/ruby_mercurial_patch.rb +0 -123
  204. data/lib/amp/merges/merge_state.rb +0 -164
  205. data/lib/amp/merges/merge_ui.rb +0 -322
  206. data/lib/amp/merges/simple_merge.rb +0 -450
  207. data/lib/amp/repository/branch_manager.rb +0 -234
  208. data/lib/amp/repository/dir_state.rb +0 -950
  209. data/lib/amp/repository/journal.rb +0 -203
  210. data/lib/amp/repository/lock.rb +0 -207
  211. data/lib/amp/repository/repositories/bundle_repository.rb +0 -214
  212. data/lib/amp/repository/repositories/http_repository.rb +0 -377
  213. data/lib/amp/repository/repositories/local_repository.rb +0 -2661
  214. data/lib/amp/repository/store.rb +0 -485
  215. data/lib/amp/repository/tag_manager.rb +0 -319
  216. data/lib/amp/repository/updatable.rb +0 -532
  217. data/lib/amp/repository/verification.rb +0 -431
  218. data/lib/amp/repository/versioned_file.rb +0 -475
  219. data/lib/amp/revlogs/bundle_revlogs.rb +0 -246
  220. data/lib/amp/revlogs/changegroup.rb +0 -217
  221. data/lib/amp/revlogs/changelog.rb +0 -338
  222. data/lib/amp/revlogs/changeset.rb +0 -521
  223. data/lib/amp/revlogs/file_log.rb +0 -165
  224. data/lib/amp/revlogs/index.rb +0 -493
  225. data/lib/amp/revlogs/manifest.rb +0 -195
  226. data/lib/amp/revlogs/node.rb +0 -18
  227. data/lib/amp/revlogs/revlog.rb +0 -1045
  228. data/lib/amp/revlogs/revlog_support.rb +0 -126
  229. data/lib/amp/support/ignore.rb +0 -144
  230. data/site/Rakefile +0 -38
  231. data/test/test_amp.rb +0 -9
  232. data/test/test_helper.rb +0 -15
@@ -0,0 +1,79 @@
1
+ require 'stringio'
2
+ require File.join(File.expand_path(File.dirname(__FILE__)), 'testutilities')
3
+ require File.join(File.dirname(__FILE__), "../lib/amp/support/amp_ui")
4
+
5
+ class TestAmpUI < AmpTestCase
6
+ include Amp
7
+ def setup
8
+ @old_stdin = $stdin
9
+ @old_stdout = $stdout
10
+ @stdout = $stdout = StringIO.new
11
+ end
12
+
13
+ def teardown
14
+ $stdin = @old_stdin
15
+ $stdout = @old_stdout
16
+ end
17
+
18
+ def set_stdin(new_in)
19
+ @stdin = $stdin = StringIO.new(new_in)
20
+ @stdin.rewind
21
+ end
22
+
23
+ def test_tell
24
+ UI::tell "some output"
25
+ assert_equal "some output", @stdout.string
26
+ end
27
+
28
+ def test_say
29
+ UI::say "some output"
30
+ assert_equal "some output\n", @stdout.string
31
+ end
32
+
33
+ def test_ask_integer
34
+ set_stdin("15\n")
35
+ assert_equal 15, UI::ask("number please? ", Fixnum)
36
+ set_stdin("15\n")
37
+ assert_equal 15, UI::ask("number please? ", Integer)
38
+ set_stdin("15\n")
39
+ assert_equal 15, UI::ask("number please? ", Bignum)
40
+ set_stdin("15\n")
41
+ assert_equal 15, UI::ask("number please? ", Numeric)
42
+ end
43
+
44
+ def test_ask_float
45
+ set_stdin("123.45\n")
46
+ assert_equal 123.45, UI::ask("number please? ", Float)
47
+ end
48
+
49
+ def test_ask_string
50
+ set_stdin("Hello, world!\n")
51
+ assert_equal "Hello, world!", UI::ask("some input", String)
52
+ end
53
+
54
+ def test_ask_array
55
+ set_stdin("Hi, There, some, stuff")
56
+ assert_equal ["Hi", "There", "some", "stuff"], UI::ask("some array: ", Array)
57
+ end
58
+
59
+ def test_yes_or_no
60
+ set_stdin("yes\n")
61
+ assert UI::yes_or_no
62
+ end
63
+
64
+ def test_yes_or_no_false
65
+ set_stdin("no\n")
66
+ assert_false UI::yes_or_no
67
+ end
68
+
69
+ def test_choose
70
+ closed_over = nil
71
+ set_stdin("1\n")
72
+ UI::choose do |menu|
73
+ menu.choice("First") {closed_over = 1}
74
+ menu.choice("Second") {closed_over = 2}
75
+ end
76
+ assert_equal closed_over, 1
77
+ end
78
+
79
+ end
@@ -0,0 +1,56 @@
1
+ require 'test/unit'
2
+ require 'rubygems'
3
+ require 'minitest/unit'
4
+
5
+ class AmpTestCase < MiniTest::Unit::TestCase
6
+ def setup
7
+ super
8
+ tmpdir = nil
9
+ Dir.chdir Dir.tmpdir do tmpdir = Dir.pwd end # HACK OSX /private/tmp
10
+ @tempdir = File.join tmpdir, "test_amp_#{$$}"
11
+ @tempdir.untaint
12
+ end
13
+
14
+ def tempdir
15
+ @tempdir
16
+ end
17
+
18
+ def teardown
19
+ FileUtils.rm_rf @tempdir if defined?(@tempdir) && @tempdir && File.exist?(@tempdir)
20
+ end
21
+
22
+
23
+ # taken from rubygems
24
+ def write_file(path)
25
+ path = File.join(@tempdir, path)
26
+ dir = File.dirname path
27
+ FileUtils.mkdir_p dir
28
+
29
+ open path, 'wb' do |io|
30
+ yield io
31
+ end
32
+
33
+ path
34
+ end
35
+
36
+ def assert_regexp_equal(areg, breg)
37
+ # because regexes, inspected, seems to be killing assert_equal
38
+ assert areg.inspect == breg.inspect, "#{areg.inspect} is not equal to #{breg.inspect}"
39
+ end
40
+
41
+ def assert_false(val)
42
+ assert_equal(false, !!val)
43
+ end
44
+
45
+ def assert_not_nil(val)
46
+ refute_equal(nil, val)
47
+ end
48
+
49
+ def assert_file_contents(file, contents)
50
+ File.open(file,"r") do |f|
51
+ assert_equal f.read, contents
52
+ end
53
+ end
54
+ end
55
+
56
+ MiniTest::Unit.autorun
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: amp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 5
8
+ - 3
9
+ version: 0.5.3
5
10
  platform: ruby
6
11
  authors:
7
12
  - Michael Edgar
@@ -10,19 +15,65 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2009-11-28 00:00:00 -05:00
18
+ date: 2010-03-13 00:00:00 -05:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
- name: hoe
22
+ name: rtfm
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ - 5
31
+ - 1
32
+ version: 0.5.1
18
33
  type: :development
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
34
+ version_requirements: *id001
35
+ - !ruby/object:Gem::Dependency
36
+ name: yard
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
21
39
  requirements:
22
40
  - - ">="
23
41
  - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ - 4
45
+ - 0
46
+ version: 0.4.0
47
+ type: :development
48
+ version_requirements: *id002
49
+ - !ruby/object:Gem::Dependency
50
+ name: minitest
51
+ prerelease: false
52
+ requirement: &id003 !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ segments:
57
+ - 1
58
+ - 5
59
+ - 0
60
+ version: 1.5.0
61
+ type: :development
62
+ version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: hoe
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ segments:
71
+ - 2
72
+ - 3
73
+ - 2
24
74
  version: 2.3.2
25
- version:
75
+ type: :development
76
+ version_requirements: *id004
26
77
  description: ""
27
78
  email:
28
79
  - adgar@carboni.ca
@@ -58,7 +109,6 @@ files:
58
109
  - ext/amp/bz2/README.txt
59
110
  - ext/amp/bz2/bz2.c
60
111
  - ext/amp/bz2/extconf.rb
61
- - ext/amp/bz2/mkmf.log
62
112
  - ext/amp/mercurial_patch/extconf.rb
63
113
  - ext/amp/mercurial_patch/mpatch.c
64
114
  - ext/amp/priority_queue/extconf.rb
@@ -82,6 +132,7 @@ files:
82
132
  - lib/amp/commands/commands/workflows/hg/addremove.rb
83
133
  - lib/amp/commands/commands/workflows/hg/annotate.rb
84
134
  - lib/amp/commands/commands/workflows/hg/archive.rb
135
+ - lib/amp/commands/commands/workflows/hg/bisect.rb
85
136
  - lib/amp/commands/commands/workflows/hg/branch.rb
86
137
  - lib/amp/commands/commands/workflows/hg/branches.rb
87
138
  - lib/amp/commands/commands/workflows/hg/bundle.rb
@@ -114,13 +165,43 @@ files:
114
165
  - lib/amp/commands/commands/workflows/hg/tag.rb
115
166
  - lib/amp/commands/commands/workflows/hg/tags.rb
116
167
  - lib/amp/commands/commands/workflows/hg/tip.rb
168
+ - lib/amp/commands/commands/workflows/hg/untrack.rb
117
169
  - lib/amp/commands/commands/workflows/hg/update.rb
118
170
  - lib/amp/commands/commands/workflows/hg/verify.rb
119
171
  - lib/amp/commands/commands/workflows/hg/view.rb
172
+ - lib/amp/commands/commands/workflows/hg/what_changed.rb
120
173
  - lib/amp/commands/dispatch.rb
121
174
  - lib/amp/commands/hooks.rb
122
175
  - lib/amp/dependencies/amp_support.rb
123
176
  - lib/amp/dependencies/amp_support/ruby_amp_support.rb
177
+ - lib/amp/dependencies/maruku.rb
178
+ - lib/amp/dependencies/maruku/attributes.rb
179
+ - lib/amp/dependencies/maruku/defaults.rb
180
+ - lib/amp/dependencies/maruku/errors_management.rb
181
+ - lib/amp/dependencies/maruku/helpers.rb
182
+ - lib/amp/dependencies/maruku/input/charsource.rb
183
+ - lib/amp/dependencies/maruku/input/extensions.rb
184
+ - lib/amp/dependencies/maruku/input/html_helper.rb
185
+ - lib/amp/dependencies/maruku/input/linesource.rb
186
+ - lib/amp/dependencies/maruku/input/parse_block.rb
187
+ - lib/amp/dependencies/maruku/input/parse_doc.rb
188
+ - lib/amp/dependencies/maruku/input/parse_span_better.rb
189
+ - lib/amp/dependencies/maruku/input/rubypants.rb
190
+ - lib/amp/dependencies/maruku/input/type_detection.rb
191
+ - lib/amp/dependencies/maruku/input_textile2/t2_parser.rb
192
+ - lib/amp/dependencies/maruku/maruku.rb
193
+ - lib/amp/dependencies/maruku/output/to_ansi.rb
194
+ - lib/amp/dependencies/maruku/output/to_html.rb
195
+ - lib/amp/dependencies/maruku/output/to_markdown.rb
196
+ - lib/amp/dependencies/maruku/output/to_s.rb
197
+ - lib/amp/dependencies/maruku/string_utils.rb
198
+ - lib/amp/dependencies/maruku/structures.rb
199
+ - lib/amp/dependencies/maruku/structures_inspect.rb
200
+ - lib/amp/dependencies/maruku/structures_iterators.rb
201
+ - lib/amp/dependencies/maruku/textile2.rb
202
+ - lib/amp/dependencies/maruku/toc.rb
203
+ - lib/amp/dependencies/maruku/usage/example1.rb
204
+ - lib/amp/dependencies/maruku/version.rb
124
205
  - lib/amp/dependencies/minitar.rb
125
206
  - lib/amp/dependencies/priority_queue.rb
126
207
  - lib/amp/dependencies/priority_queue/c_priority_queue.rb
@@ -137,41 +218,63 @@ files:
137
218
  - lib/amp/encoding/base85.rb
138
219
  - lib/amp/encoding/binary_diff.rb
139
220
  - lib/amp/encoding/difflib.rb
140
- - lib/amp/encoding/mercurial_diff.rb
141
- - lib/amp/encoding/mercurial_patch.rb
142
- - lib/amp/encoding/patch.rb
143
- - lib/amp/encoding/pure_ruby/ruby_mercurial_patch.rb
144
221
  - lib/amp/extensions/ditz.rb
145
222
  - lib/amp/extensions/lighthouse.rb
146
223
  - lib/amp/graphs/ancestor.rb
147
224
  - lib/amp/graphs/copies.rb
148
- - lib/amp/merges/merge_state.rb
149
- - lib/amp/merges/merge_ui.rb
150
- - lib/amp/merges/simple_merge.rb
225
+ - lib/amp/help/entries/__default__.erb
226
+ - lib/amp/help/entries/commands.erb
227
+ - lib/amp/help/entries/mdtest.md
228
+ - lib/amp/help/entries/silly
229
+ - lib/amp/help/help.rb
151
230
  - lib/amp/profiling_hacks.rb
152
- - lib/amp/repository/branch_manager.rb
153
- - lib/amp/repository/dir_state.rb
154
- - lib/amp/repository/journal.rb
155
- - lib/amp/repository/lock.rb
156
- - lib/amp/repository/repositories/bundle_repository.rb
157
- - lib/amp/repository/repositories/http_repository.rb
158
- - lib/amp/repository/repositories/local_repository.rb
231
+ - lib/amp/repository/abstract/abstract_changeset.rb
232
+ - lib/amp/repository/abstract/abstract_local_repo.rb
233
+ - lib/amp/repository/abstract/abstract_staging_area.rb
234
+ - lib/amp/repository/abstract/abstract_versioned_file.rb
235
+ - lib/amp/repository/abstract/common_methods/changeset.rb
236
+ - lib/amp/repository/abstract/common_methods/local_repo.rb
237
+ - lib/amp/repository/abstract/common_methods/staging_area.rb
238
+ - lib/amp/repository/abstract/common_methods/versioned_file.rb
239
+ - lib/amp/repository/generic_repo_picker.rb
240
+ - lib/amp/repository/git/repo_format/changeset.rb
241
+ - lib/amp/repository/git/repo_format/staging_area.rb
242
+ - lib/amp/repository/git/repo_format/versioned_file.rb
243
+ - lib/amp/repository/git/repositories/local_repository.rb
244
+ - lib/amp/repository/git/repository.rb
245
+ - lib/amp/repository/mercurial/encoding/mercurial_diff.rb
246
+ - lib/amp/repository/mercurial/encoding/mercurial_patch.rb
247
+ - lib/amp/repository/mercurial/encoding/patch.rb
248
+ - lib/amp/repository/mercurial/encoding/pure_ruby/ruby_mercurial_patch.rb
249
+ - lib/amp/repository/mercurial/merging/merge_ui.rb
250
+ - lib/amp/repository/mercurial/merging/simple_merge.rb
251
+ - lib/amp/repository/mercurial/repo_format/branch_manager.rb
252
+ - lib/amp/repository/mercurial/repo_format/changeset.rb
253
+ - lib/amp/repository/mercurial/repo_format/dir_state.rb
254
+ - lib/amp/repository/mercurial/repo_format/journal.rb
255
+ - lib/amp/repository/mercurial/repo_format/lock.rb
256
+ - lib/amp/repository/mercurial/repo_format/merge_state.rb
257
+ - lib/amp/repository/mercurial/repo_format/staging_area.rb
258
+ - lib/amp/repository/mercurial/repo_format/store.rb
259
+ - lib/amp/repository/mercurial/repo_format/tag_manager.rb
260
+ - lib/amp/repository/mercurial/repo_format/updatable.rb
261
+ - lib/amp/repository/mercurial/repo_format/updater.rb
262
+ - lib/amp/repository/mercurial/repo_format/verification.rb
263
+ - lib/amp/repository/mercurial/repositories/bundle_repository.rb
264
+ - lib/amp/repository/mercurial/repositories/http_repository.rb
265
+ - lib/amp/repository/mercurial/repositories/local_repository.rb
266
+ - lib/amp/repository/mercurial/repository.rb
267
+ - lib/amp/repository/mercurial/revlogs/bundle_revlogs.rb
268
+ - lib/amp/repository/mercurial/revlogs/changegroup.rb
269
+ - lib/amp/repository/mercurial/revlogs/changelog.rb
270
+ - lib/amp/repository/mercurial/revlogs/file_log.rb
271
+ - lib/amp/repository/mercurial/revlogs/index.rb
272
+ - lib/amp/repository/mercurial/revlogs/manifest.rb
273
+ - lib/amp/repository/mercurial/revlogs/node.rb
274
+ - lib/amp/repository/mercurial/revlogs/revlog.rb
275
+ - lib/amp/repository/mercurial/revlogs/revlog_support.rb
276
+ - lib/amp/repository/mercurial/revlogs/versioned_file.rb
159
277
  - lib/amp/repository/repository.rb
160
- - lib/amp/repository/store.rb
161
- - lib/amp/repository/tag_manager.rb
162
- - lib/amp/repository/updatable.rb
163
- - lib/amp/repository/verification.rb
164
- - lib/amp/repository/versioned_file.rb
165
- - lib/amp/revlogs/bundle_revlogs.rb
166
- - lib/amp/revlogs/changegroup.rb
167
- - lib/amp/revlogs/changelog.rb
168
- - lib/amp/revlogs/changeset.rb
169
- - lib/amp/revlogs/file_log.rb
170
- - lib/amp/revlogs/index.rb
171
- - lib/amp/revlogs/manifest.rb
172
- - lib/amp/revlogs/node.rb
173
- - lib/amp/revlogs/revlog.rb
174
- - lib/amp/revlogs/revlog_support.rb
175
278
  - lib/amp/server/amp_user.rb
176
279
  - lib/amp/server/extension/amp_extension.rb
177
280
  - lib/amp/server/extension/authorization.rb
@@ -193,20 +296,20 @@ files:
193
296
  - lib/amp/support/amp_ui.rb
194
297
  - lib/amp/support/docs.rb
195
298
  - lib/amp/support/generator.rb
196
- - lib/amp/support/ignore.rb
197
299
  - lib/amp/support/loaders.rb
198
300
  - lib/amp/support/logger.rb
199
301
  - lib/amp/support/match.rb
302
+ - lib/amp/support/mercurial/ignore.rb
200
303
  - lib/amp/support/multi_io.rb
201
304
  - lib/amp/support/openers.rb
202
305
  - lib/amp/support/ruby_19_compatibility.rb
203
306
  - lib/amp/support/support.rb
204
- - lib/amp/templates/blank.commit.erb
205
- - lib/amp/templates/blank.log.erb
206
- - lib/amp/templates/default.commit.erb
207
- - lib/amp/templates/default.log.erb
307
+ - lib/amp/templates/mercurial/blank.commit.erb
308
+ - lib/amp/templates/mercurial/blank.log.erb
309
+ - lib/amp/templates/mercurial/default.commit.erb
310
+ - lib/amp/templates/mercurial/default.log.erb
208
311
  - lib/amp/templates/template.rb
209
- - site/Rakefile
312
+ - man/amp.1
210
313
  - site/src/about/ampfile.haml
211
314
  - site/src/about/commands.haml
212
315
  - site/src/about/index.haml
@@ -253,11 +356,13 @@ files:
253
356
  - site/src/learn/index.haml
254
357
  - site/src/scripts/jquery-1.3.2.min.js
255
358
  - site/src/scripts/jquery.cookie.js
359
+ - tasks/man.rake
256
360
  - tasks/stats.rake
257
361
  - tasks/yard.rake
258
362
  - test/dirstate_tests/dirstate
259
363
  - test/dirstate_tests/hgrc
260
364
  - test/dirstate_tests/test_dir_state.rb
365
+ - test/functional_tests/annotate.out
261
366
  - test/functional_tests/resources/.hgignore
262
367
  - test/functional_tests/resources/STYLE.txt
263
368
  - test/functional_tests/resources/command.rb
@@ -307,6 +412,7 @@ files:
307
412
  - test/functional_tests/resources/version5_2/commands/stats.rb
308
413
  - test/functional_tests/resources/version5_2/commands/status.rb
309
414
  - test/functional_tests/test_functional.rb
415
+ - test/localrepo_tests/ampfile.rb
310
416
  - test/localrepo_tests/test_local_repo.rb
311
417
  - test/localrepo_tests/testrepo.tar.gz
312
418
  - test/manifest_tests/00manifest.i
@@ -323,17 +429,23 @@ files:
323
429
  - test/revlog_tests/testindex.i
324
430
  - test/store_tests/store.tar.gz
325
431
  - test/store_tests/test_fncache_store.rb
326
- - test/test_amp.rb
432
+ - test/test_19_compatibility.rb
327
433
  - test/test_base85.rb
328
434
  - test/test_bdiff.rb
435
+ - test/test_changegroup.rb
329
436
  - test/test_commands.rb
330
437
  - test/test_difflib.rb
331
- - test/test_helper.rb
438
+ - test/test_generator.rb
439
+ - test/test_ignore.rb
332
440
  - test/test_journal.rb
333
441
  - test/test_match.rb
334
442
  - test/test_mdiff.rb
335
443
  - test/test_mpatch.rb
444
+ - test/test_multi_io.rb
336
445
  - test/test_support.rb
446
+ - test/test_templates.rb
447
+ - test/test_ui.rb
448
+ - test/testutilities.rb
337
449
  has_rdoc: true
338
450
  homepage: http://amp.carboni.ca/
339
451
  licenses: []
@@ -349,18 +461,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
349
461
  requirements:
350
462
  - - ">="
351
463
  - !ruby/object:Gem::Version
464
+ segments:
465
+ - 0
352
466
  version: "0"
353
- version:
354
467
  required_rubygems_version: !ruby/object:Gem::Requirement
355
468
  requirements:
356
469
  - - ">="
357
470
  - !ruby/object:Gem::Version
471
+ segments:
472
+ - 0
358
473
  version: "0"
359
- version:
360
474
  requirements: []
361
475
 
362
476
  rubyforge_project: amp
363
- rubygems_version: 1.3.5
477
+ rubygems_version: 1.3.6
364
478
  signing_key:
365
479
  specification_version: 3
366
480
  summary: Version Control in Ruby. Mercurial Compatible. Big Ideas.
@@ -372,14 +486,19 @@ test_files:
372
486
  - test/merge_tests/test_merge.rb
373
487
  - test/revlog_tests/test_revlog.rb
374
488
  - test/store_tests/test_fncache_store.rb
375
- - test/test_amp.rb
489
+ - test/test_19_compatibility.rb
376
490
  - test/test_base85.rb
377
491
  - test/test_bdiff.rb
492
+ - test/test_changegroup.rb
378
493
  - test/test_commands.rb
379
494
  - test/test_difflib.rb
380
- - test/test_helper.rb
495
+ - test/test_generator.rb
496
+ - test/test_ignore.rb
381
497
  - test/test_journal.rb
382
498
  - test/test_match.rb
383
499
  - test/test_mdiff.rb
384
500
  - test/test_mpatch.rb
501
+ - test/test_multi_io.rb
385
502
  - test/test_support.rb
503
+ - test/test_templates.rb
504
+ - test/test_ui.rb