mercurial-ruby 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. data/VERSION +1 -1
  2. data/lib/mercurial-ruby.rb +4 -1
  3. data/lib/mercurial-ruby/blame.rb +29 -0
  4. data/lib/mercurial-ruby/blame_line.rb +19 -0
  5. data/lib/mercurial-ruby/factories/blame_factory.rb +28 -0
  6. data/lib/mercurial-ruby/repository.rb +4 -0
  7. data/mercurial-ruby.gemspec +8 -117
  8. data/test/fixtures/test-repo.zip +0 -0
  9. data/test/helper.rb +13 -1
  10. data/test/test_blame.rb +28 -0
  11. data/test/test_blame_factory.rb +43 -0
  12. metadata +10 -119
  13. data/test/fixtures/test-repo/.DotFile +0 -1
  14. data/test/fixtures/test-repo/.hg/00changelog.i +0 -0
  15. data/test/fixtures/test-repo/.hg/branch +0 -1
  16. data/test/fixtures/test-repo/.hg/cache/branchheads +0 -6
  17. data/test/fixtures/test-repo/.hg/cache/tags +0 -7
  18. data/test/fixtures/test-repo/.hg/dirstate +0 -0
  19. data/test/fixtures/test-repo/.hg/hgrc +0 -3
  20. data/test/fixtures/test-repo/.hg/last-message.txt +0 -1
  21. data/test/fixtures/test-repo/.hg/requires +0 -4
  22. data/test/fixtures/test-repo/.hg/store/00changelog.i +0 -0
  23. data/test/fixtures/test-repo/.hg/store/00manifest.i +0 -0
  24. data/test/fixtures/test-repo/.hg/store/data/_file _with _whitespace.pdf.i +0 -0
  25. data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e.txt.i +0 -0
  26. data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e2.txt.i +0 -0
  27. data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e3.txt.i +0 -0
  28. data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e4.txt.i +0 -0
  29. data/test/fixtures/test-repo/.hg/store/data/_r_e_a_d_m_e.markdown.i +0 -0
  30. data/test/fixtures/test-repo/.hg/store/data/_r_e_a_d_m_e.markup.i +0 -0
  31. data/test/fixtures/test-repo/.hg/store/data/_rakefile.i +0 -0
  32. data/test/fixtures/test-repo/.hg/store/data/_rakefile2.i +0 -0
  33. data/test/fixtures/test-repo/.hg/store/data/_rakefile3.i +0 -0
  34. data/test/fixtures/test-repo/.hg/store/data/check ~5c this ~5c out ~22 now.i +0 -0
  35. data/test/fixtures/test-repo/.hg/store/data/directory two/minitest__mixin.rb.i +0 -0
  36. data/test/fixtures/test-repo/.hg/store/data/directory two/options.rb.i +0 -0
  37. data/test/fixtures/test-repo/.hg/store/data/directory two/rdoc__mixin.rb.i +0 -0
  38. data/test/fixtures/test-repo/.hg/store/data/directory two/rspec__mixin.rb.i +0 -0
  39. data/test/fixtures/test-repo/.hg/store/data/directory two/shindo__mixin.rb.i +0 -0
  40. data/test/fixtures/test-repo/.hg/store/data/directory two/shoulda__mixin.rb.i +0 -0
  41. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_gemfile.i +0 -0
  42. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_l_i_c_e_n_s_e.txt.i +0 -0
  43. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_r_e_a_d_m_e.rdoc.i +0 -0
  44. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_rakefile.i +0 -0
  45. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bacon/flunking.rb.i +0 -0
  46. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bacon/helper.rb.i +0 -0
  47. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bundler__setup.erb.i +0 -0
  48. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/features/default.feature.i +0 -0
  49. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/features/support/env.rb.i +0 -0
  50. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/jeweler__tasks.erb.i +0 -0
  51. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/micronaut/flunking.rb.i +0 -0
  52. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/micronaut/helper.rb.i +0 -0
  53. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/minitest/flunking.rb.i +0 -0
  54. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/minitest/helper.rb.i +0 -0
  55. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/other__tasks.erb.i +0 -0
  56. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/riot/flunking.rb.i +0 -0
  57. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/riot/helper.rb.i +0 -0
  58. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/flunking.rb.i +0 -0
  59. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/helper.rb.i +0 -0
  60. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/~2erspec.i +0 -0
  61. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shindo/flunking.rb.i +0 -0
  62. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shindo/helper.rb.i +0 -0
  63. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shoulda/flunking.rb.i +0 -0
  64. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shoulda/helper.rb.i +0 -0
  65. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testspec/flunking.rb.i +0 -0
  66. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testspec/helper.rb.i +0 -0
  67. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testunit/flunking.rb.i +0 -0
  68. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testunit/helper.rb.i +0 -0
  69. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/~2edocument.i +0 -0
  70. data/test/fixtures/test-repo/.hg/store/data/directory two/templates/~2egitignore.i +0 -0
  71. data/test/fixtures/test-repo/.hg/store/data/directory two/~2e_d_s___store.i +0 -0
  72. data/test/fixtures/test-repo/.hg/store/data/directory__1/rubygems__dot__org__tasks.rb.i +0 -0
  73. data/test/fixtures/test-repo/.hg/store/data/directory__1/rubygems__tasks.rb.i +0 -0
  74. data/test/fixtures/test-repo/.hg/store/data/directory__1/specification.rb.i +0 -0
  75. data/test/fixtures/test-repo/.hg/store/data/directory__1/tasks.rb.i +0 -0
  76. data/test/fixtures/test-repo/.hg/store/data/directory__1/~2e_d_s___store.i +0 -0
  77. data/test/fixtures/test-repo/.hg/store/data/empty-file.i +0 -0
  78. data/test/fixtures/test-repo/.hg/store/data/goose.png.i +0 -0
  79. data/test/fixtures/test-repo/.hg/store/data/goose/pretty-thing.txt.i +0 -0
  80. data/test/fixtures/test-repo/.hg/store/data/new-directory/another-boring-file.i +0 -0
  81. data/test/fixtures/test-repo/.hg/store/data/new-directory/something.csv.i +0 -0
  82. data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_e_u_l_a5seat___chin___sim02.03.04.pdf.d +0 -0
  83. data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_e_u_l_a5seat___chin___sim02.03.04.pdf.i +0 -0
  84. data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_file _with _whitespace.pdf.i +0 -0
  85. data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/beansprout.png.i +0 -0
  86. data/test/fixtures/test-repo/.hg/store/data/new-file.i +0 -0
  87. data/test/fixtures/test-repo/.hg/store/data/old-directory/minitest__mixin.rb.i +0 -0
  88. data/test/fixtures/test-repo/.hg/store/data/old-directory/options.rb.i +0 -0
  89. data/test/fixtures/test-repo/.hg/store/data/old-directory/rspec__mixin.rb.i +0 -0
  90. data/test/fixtures/test-repo/.hg/store/data/old-directory/shindo__mixin.rb.i +0 -0
  91. data/test/fixtures/test-repo/.hg/store/data/old-directory/testunit__mixin.rb.i +0 -0
  92. data/test/fixtures/test-repo/.hg/store/data/old-directory/yard__mixin.rb.i +0 -0
  93. data/test/fixtures/test-repo/.hg/store/data/riot__mixin.rb.i +0 -0
  94. data/test/fixtures/test-repo/.hg/store/data/riot__mixin__copy.rb.i +0 -0
  95. data/test/fixtures/test-repo/.hg/store/data/style.i +0 -0
  96. data/test/fixtures/test-repo/.hg/store/data/super-cow.i +0 -0
  97. data/test/fixtures/test-repo/.hg/store/data/superman.txt.i +0 -0
  98. data/test/fixtures/test-repo/.hg/store/data/testspec__mixin.rb.i +0 -0
  99. data/test/fixtures/test-repo/.hg/store/data/testspec__mixin__new.rb.i +0 -0
  100. data/test/fixtures/test-repo/.hg/store/data/~2e_dot_file.i +0 -0
  101. data/test/fixtures/test-repo/.hg/store/data/~2ehgignore.i +0 -0
  102. data/test/fixtures/test-repo/.hg/store/data/~2ehgtags.i +0 -0
  103. data/test/fixtures/test-repo/.hg/store/fncache +0 -79
  104. data/test/fixtures/test-repo/.hg/store/undo +0 -0
  105. data/test/fixtures/test-repo/.hg/undo.bookmarks +0 -0
  106. data/test/fixtures/test-repo/.hg/undo.branch +0 -1
  107. data/test/fixtures/test-repo/.hg/undo.desc +0 -2
  108. data/test/fixtures/test-repo/.hg/undo.dirstate +0 -0
  109. data/test/fixtures/test-repo/.hgignore +0 -1
  110. data/test/fixtures/test-repo/.hgtags +0 -1
  111. data/test/fixtures/test-repo/LICENSE3.txt +0 -15
  112. data/test/fixtures/test-repo/LICENSE4.txt +0 -17
  113. data/test/fixtures/test-repo/README.markup +0 -218
  114. data/test/fixtures/test-repo/Rakefile3 +0 -83
  115. data/test/fixtures/test-repo/check // this // out /" now" "b/data/test/fixtures/test-repo/check // this // out / → now +0 -0
  116. data/test/fixtures/test-repo/empty-file +0 -0
  117. data/test/fixtures/test-repo/goose.png +0 -0
  118. data/test/fixtures/test-repo/goose/pretty-thing.txt +0 -0
  119. data/test/fixtures/test-repo/new-directory/another-boring-file +0 -78
  120. data/test/fixtures/test-repo/new-directory/something.csv +0 -1
  121. data/test/fixtures/test-repo/new-directory/subdirectory/EULA5seat_Chin_Sim02.03.04.pdf +0 -0
  122. data/test/fixtures/test-repo/new-directory/subdirectory/File With Whitespace.pdf b/data/test/fixtures/test-repo/new-directory/subdirectory/File With → Whitespace.pdf +0 -0
  123. data/test/fixtures/test-repo/new-directory/subdirectory/beansprout.png +0 -0
  124. data/test/fixtures/test-repo/riot_mixin.rb +0 -45
  125. data/test/fixtures/test-repo/style +0 -4
  126. data/test/fixtures/test-repo/superman.txt +0 -1
  127. data/test/fixtures/test-repo/testspec_mixin_new.rb +0 -44
@@ -1,83 +0,0 @@
1
- # encoding: utf-8
2
-
3
- test
4
-
5
- require 'rubygems'
6
- require 'bundler'
7
-
8
- begin
9
- Bundler.setup(:default, :development)
10
- rescue Bundler::BundlerError => e
11
- $stderr.puts e.message
12
- $stderr.puts "Run `bundle install` to install missing gems"
13
- exit e.status_code
14
- end
15
-
16
- $LOAD_PATH.unshift('lib')
17
-
18
- require 'rake'
19
- require 'jeweler'
20
-
21
- Jeweler::Tasks.new do |gem|
22
- gem.name = "jeweler"
23
- gem.version = Jeweler::Version::STRING
24
- gem.homepage = "http://github.com/technicalpickles/jeweler"
25
- gem.summary = "Opinionated tool for creating and managing RubyGem projects"
26
- gem.description = "Simple and opinionated helper for creating Rubygem projects on GitHub"
27
- gem.license = "MIT"
28
- gem.authors = ["Josh Nichols"]
29
- gem.email = "josh@technicalpickles.com"
30
- gem.files.include %w(lib/jeweler/templates/.document lib/jeweler/templates/.gitignore)
31
-
32
- # dependencies defined in Gemfile
33
- end
34
-
35
- Jeweler::RubygemsDotOrgTasks.new
36
-
37
- require 'rake/testtask'
38
- Rake::TestTask.new(:test) do |test|
39
- test.test_files = FileList.new('test/**/test_*.rb') do |list|
40
- list.exclude 'test/test_helper.rb'
41
- list.exclude 'test/fixtures/**/*.rb'
42
- end
43
- test.libs << 'test'
44
- test.verbose = true
45
- end
46
-
47
- namespace :test do
48
- task :gemspec_dup do
49
- gemspec = Rake.application.jeweler.gemspec
50
- dupped_gemspec = gemspec.dup
51
- cloned_gemspec = gemspec.clone
52
- puts gemspec.to_ruby
53
- puts dupped_gemspec.to_ruby
54
- end
55
- end
56
-
57
- require 'yard'
58
- YARD::Rake::YardocTask.new do |t|
59
- t.files = FileList['lib/**/*.rb'].exclude('lib/jeweler/templates/**/*.rb')
60
- end
61
-
62
- require 'rcov/rcovtask'
63
- Rcov::RcovTask.new(:rcov => :check_dependencies) do |rcov|
64
- rcov.libs << 'test'
65
- rcov.pattern = 'test/**/test_*.rb'
66
- end
67
-
68
- require 'cucumber/rake/task'
69
- Cucumber::Rake::Task.new(:features) do |features|
70
- features.cucumber_opts = "features --format progress"
71
- end
72
- namespace :features do
73
- Cucumber::Rake::Task.new(:pretty) do |features|
74
- features.cucumber_opts = "features --format progress"
75
- end
76
- end
77
-
78
- if ENV["RUN_CODE_RUN"] == "true"
79
- task :default => [:test, :features]
80
- else
81
- task :default => :test
82
- end
83
-
File without changes
Binary file
File without changes
@@ -1,78 +0,0 @@
1
- Mercurial Distributed SCM
2
-
3
- list of commands:
4
-
5
- add add the specified files on the next commit
6
- addremove add all new files, delete all missing files
7
- annotate show changeset information by line for each file
8
- archive create an unversioned archive of a repository revision
9
- backout reverse effect of earlier changeset
10
- bisect subdivision search of changesets
11
- bookmarks track a line of development with movable markers
12
- branch set or show the current branch name
13
- branches list repository named branches
14
- bundle create a changegroup file
15
- cat output the current or given revision of files
16
- clone make a copy of an existing repository
17
- commit commit the specified files or all outstanding changes
18
- copy mark files as copied for the next commit
19
- diff diff repository (or selected files)
20
- export dump the header and diffs for one or more changesets
21
- forget forget the specified files on the next commit
22
- grep search for a pattern in specified files and revisions
23
- heads show current repository heads or show branch heads
24
- help show help for a given topic or a help overview
25
- identify identify the working copy or specified revision
26
- import import an ordered set of patches
27
- incoming show new changesets found in source
28
- init create a new repository in the given directory
29
- locate locate files matching specific patterns
30
- log show revision history of entire repository or files
31
- manifest output the current or given revision of the project manifest
32
- merge merge working directory with another revision
33
- outgoing show changesets not found in the destination
34
- parents show the parents of the working directory or revision
35
- paths show aliases for remote repositories
36
- pull pull changes from the specified source
37
- push push changes to the specified destination
38
- recover roll back an interrupted transaction
39
- remove remove the specified files on the next commit
40
- rename rename files; equivalent of copy + remove
41
- resolve redo merges or set/view the merge status of files
42
- revert restore files to their checkout state
43
- rollback roll back the last transaction (dangerous)
44
- root print the root (top) of the current working directory
45
- serve start stand-alone webserver
46
- showconfig show combined config settings from all hgrc files
47
- status show changed files in the working directory
48
- summary summarize working directory state
49
- tag add one or more tags for the current or given revision
50
- tags list repository tags
51
- tip show the tip revision
52
- unbundle apply one or more changegroup files
53
- update update working directory (or switch revisions)
54
- verify verify the integrity of the repository
55
- version output version and copyright information
56
-
57
- additional help topics:
58
-
59
- config Configuration Files
60
- dates Date Formats
61
- diffs Diff Formats
62
- environment Environment Variables
63
- extensions Using additional features
64
- filesets Specifying File Sets
65
- glossary Glossary
66
- hgignore syntax for Mercurial ignore files
67
- hgweb Configuring hgweb
68
- merge-tools Merge Tools
69
- multirevs Specifying Multiple Revisions
70
- patterns File Name Patterns
71
- revisions Specifying Single Revisions
72
- revsets Specifying Revision Sets
73
- subrepos Subrepositories
74
- templating Template Usage
75
- urls URL Paths
76
-
77
- use "hg -v help" to show builtin aliases and global options
78
-
@@ -1 +0,0 @@
1
- Here will be some new kind of CSV.
@@ -1,45 +0,0 @@
1
- class Jeweler
2
- class Generator
3
- module RiotMixin
4
- def self.extended(generator)
5
- # changed
6
- generator.development_dependencies << ["riot", ">= 0"]
7
- end
8
-
9
- def default_task
10
- 'test'
11
- end
12
-
13
- def feature_support_require
14
- 'riot/context'
15
- end
16
-
17
- def feature_support_extend
18
- 'Riot::Context'
19
- end
20
-
21
- def test_dir
22
- 'test'
23
- end
24
-
25
- def test_task
26
- 'test'
27
- end
28
-
29
- def test_pattern
30
- 'test/**/*_test.rb'
31
- end
32
-
33
- def test_filename
34
- "#{require_name}_test.rb"
35
- end
36
-
37
- def test_helper_filename
38
- "teststrap.rb"
39
- end
40
-
41
- def tiny_change
42
-
43
- end
44
- end
45
- end
@@ -1,4 +0,0 @@
1
- changeset = "{node}\n{file_mods}{file_adds}{file_dels}"
2
- file_add = "A {file_add}\n"
3
- file_mod = "M {file_mod}\n"
4
- file_del = "D {file_del}\n"
@@ -1 +0,0 @@
1
- This is a superman file.
@@ -1,44 +0,0 @@
1
- class Jeweler
2
- class Generator
3
- module TestspecMixin
4
- def self.extended(generator)
5
- generator.development_dependencies << ["test-spec", ">= 0"]
6
- end
7
-
8
- def default_task
9
- 'test'
10
- end
11
-
12
- def feature_support_require
13
- 'test/unit/assertions'
14
- end
15
-
16
- def feature_support_extend
17
- 'Test::Unit::Assertions'
18
- end
19
-
20
- def test_dir
21
- 'test'
22
- end
23
-
24
- def another_change
25
-
26
- def test_task
27
- 'test'
28
- end
29
-
30
- def test_pattern
31
- 'test/**/*_test.rb'
32
- end
33
-
34
- def test_filename
35
- "#{require_name}_test.rb"
36
- end
37
-
38
- def test_helper_filename
39
- "test_helper.rb"
40
- end
41
-
42
- end
43
- end
44
- end