mercurial-ruby 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +32 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +86 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/lib/mercurial-ruby.rb +66 -0
- data/lib/mercurial-ruby/branch.rb +45 -0
- data/lib/mercurial-ruby/changed_file.rb +51 -0
- data/lib/mercurial-ruby/command.rb +77 -0
- data/lib/mercurial-ruby/commit.rb +152 -0
- data/lib/mercurial-ruby/config_file.rb +119 -0
- data/lib/mercurial-ruby/configuration.rb +14 -0
- data/lib/mercurial-ruby/diff.rb +50 -0
- data/lib/mercurial-ruby/factories/branch_factory.rb +91 -0
- data/lib/mercurial-ruby/factories/changed_file_factory.rb +50 -0
- data/lib/mercurial-ruby/factories/commit_factory.rb +154 -0
- data/lib/mercurial-ruby/factories/diff_factory.rb +63 -0
- data/lib/mercurial-ruby/factories/hook_factory.rb +45 -0
- data/lib/mercurial-ruby/factories/node_factory.rb +111 -0
- data/lib/mercurial-ruby/factories/tag_factory.rb +48 -0
- data/lib/mercurial-ruby/file_index.rb +209 -0
- data/lib/mercurial-ruby/helper.rb +23 -0
- data/lib/mercurial-ruby/hook.rb +23 -0
- data/lib/mercurial-ruby/manifest.rb +58 -0
- data/lib/mercurial-ruby/node.rb +100 -0
- data/lib/mercurial-ruby/repository.rb +94 -0
- data/lib/mercurial-ruby/root_node.rb +27 -0
- data/lib/mercurial-ruby/shell.rb +64 -0
- data/lib/mercurial-ruby/style.rb +23 -0
- data/lib/mercurial-ruby/tag.rb +33 -0
- data/lib/stdlib_exts/string.rb +12 -0
- data/lib/styles/changeset.style +5 -0
- data/lib/styles/file_index.style +3 -0
- data/mercurial-ruby.gemspec +227 -0
- data/test/fixtures.rb +28 -0
- data/test/fixtures/test-repo/.DotFile +1 -0
- data/test/fixtures/test-repo/.hg/00changelog.i +0 -0
- data/test/fixtures/test-repo/.hg/branch +1 -0
- data/test/fixtures/test-repo/.hg/cache/branchheads +6 -0
- data/test/fixtures/test-repo/.hg/cache/tags +7 -0
- data/test/fixtures/test-repo/.hg/dirstate +0 -0
- data/test/fixtures/test-repo/.hg/hgrc +3 -0
- data/test/fixtures/test-repo/.hg/last-message.txt +1 -0
- data/test/fixtures/test-repo/.hg/requires +4 -0
- data/test/fixtures/test-repo/.hg/store/00changelog.i +0 -0
- data/test/fixtures/test-repo/.hg/store/00manifest.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_file _with _whitespace.pdf.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e2.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e3.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e4.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_r_e_a_d_m_e.markdown.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_r_e_a_d_m_e.markup.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_rakefile.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_rakefile2.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/_rakefile3.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/check ~5c this ~5c out ~22 now.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/minitest__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/options.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/rdoc__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/rspec__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/shindo__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/shoulda__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_gemfile.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_l_i_c_e_n_s_e.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_r_e_a_d_m_e.rdoc.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/_rakefile.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bacon/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bacon/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/bundler__setup.erb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/features/default.feature.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/features/support/env.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/jeweler__tasks.erb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/micronaut/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/micronaut/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/minitest/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/minitest/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/other__tasks.erb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/riot/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/riot/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/~2erspec.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shindo/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shindo/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shoulda/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/shoulda/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testspec/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testspec/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testunit/flunking.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/testunit/helper.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/~2edocument.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/templates/~2egitignore.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory two/~2e_d_s___store.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/rubygems__dot__org__tasks.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/rubygems__tasks.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/specification.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/tasks.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/directory__1/~2e_d_s___store.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/empty-file.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/goose.png.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/goose/pretty-thing.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/another-boring-file.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/something.csv.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_e_u_l_a5seat___chin___sim02.03.04.pdf.d +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_e_u_l_a5seat___chin___sim02.03.04.pdf.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_file _with _whitespace.pdf.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/beansprout.png.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/new-file.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/minitest__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/options.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/rspec__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/shindo__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/testunit__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/old-directory/yard__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/riot__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/riot__mixin__copy.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/style.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/super-cow.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/superman.txt.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/testspec__mixin.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/testspec__mixin__new.rb.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/~2e_dot_file.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/~2ehgignore.i +0 -0
- data/test/fixtures/test-repo/.hg/store/data/~2ehgtags.i +0 -0
- data/test/fixtures/test-repo/.hg/store/fncache +79 -0
- data/test/fixtures/test-repo/.hg/store/undo +0 -0
- data/test/fixtures/test-repo/.hg/undo.bookmarks +0 -0
- data/test/fixtures/test-repo/.hg/undo.branch +1 -0
- data/test/fixtures/test-repo/.hg/undo.desc +2 -0
- data/test/fixtures/test-repo/.hg/undo.dirstate +0 -0
- data/test/fixtures/test-repo/.hgignore +1 -0
- data/test/fixtures/test-repo/.hgtags +1 -0
- data/test/fixtures/test-repo/LICENSE3.txt +15 -0
- data/test/fixtures/test-repo/LICENSE4.txt +17 -0
- data/test/fixtures/test-repo/README.markup +218 -0
- data/test/fixtures/test-repo/Rakefile3 +83 -0
- data/test/fixtures/test-repo/check // this // out /" now" "b/data/test/fixtures/test-repo/check // this // out / → now +0 -0
- data/test/fixtures/test-repo/empty-file +0 -0
- data/test/fixtures/test-repo/goose.png +0 -0
- data/test/fixtures/test-repo/goose/pretty-thing.txt +0 -0
- data/test/fixtures/test-repo/new-directory/another-boring-file +78 -0
- data/test/fixtures/test-repo/new-directory/something.csv +1 -0
- data/test/fixtures/test-repo/new-directory/subdirectory/EULA5seat_Chin_Sim02.03.04.pdf +0 -0
- 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
- data/test/fixtures/test-repo/new-directory/subdirectory/beansprout.png +0 -0
- data/test/fixtures/test-repo/riot_mixin.rb +45 -0
- data/test/fixtures/test-repo/style +4 -0
- data/test/fixtures/test-repo/superman.txt +1 -0
- data/test/fixtures/test-repo/testspec_mixin_new.rb +44 -0
- data/test/helper.rb +41 -0
- data/test/test_branch_factory.rb +46 -0
- data/test/test_changed_file.rb +46 -0
- data/test/test_changed_file_factory.rb +16 -0
- data/test/test_command.rb +62 -0
- data/test/test_commit.rb +66 -0
- data/test/test_commit_factory.rb +101 -0
- data/test/test_config_file.rb +105 -0
- data/test/test_configuration.rb +26 -0
- data/test/test_diff.rb +39 -0
- data/test/test_diff_factory.rb +38 -0
- data/test/test_file_index.rb +113 -0
- data/test/test_hook.rb +39 -0
- data/test/test_hook_factory.rb +40 -0
- data/test/test_manifest.rb +39 -0
- data/test/test_node.rb +34 -0
- data/test/test_node_factory.rb +125 -0
- data/test/test_repository.rb +58 -0
- data/test/test_shell.rb +33 -0
- data/test/test_tag_factory.rb +27 -0
- metadata +328 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
changeset = "{node}|><|{author|person}|><|{author|email}|><|{date|rfc3339date}|><|{desc}|><|{file_mods}|><|{file_adds}|><|{file_dels}|><|{file_copies}|><|{branches}|><|{tags}|><|{parents}||$||\n"
|
|
2
|
+
file_add = "A {file_add};"
|
|
3
|
+
file_mod = "M {file_mod};"
|
|
4
|
+
file_del = "D {file_del};"
|
|
5
|
+
file_copy = "C {source}->{name};"
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
|
+
# -*- encoding: utf-8 -*-
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |s|
|
|
7
|
+
s.name = %q{mercurial-ruby}
|
|
8
|
+
s.version = "0.3.0"
|
|
9
|
+
|
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
|
+
s.authors = ["Ilya Sabanin"]
|
|
12
|
+
s.date = %q{2011-09-03}
|
|
13
|
+
s.description = %q{Ruby API for Mercurial DVCS.}
|
|
14
|
+
s.email = %q{ilya.sabanin@gmail.com}
|
|
15
|
+
s.extra_rdoc_files = [
|
|
16
|
+
"LICENSE.txt",
|
|
17
|
+
"README.rdoc"
|
|
18
|
+
]
|
|
19
|
+
s.files = [
|
|
20
|
+
".document",
|
|
21
|
+
"Gemfile",
|
|
22
|
+
"Gemfile.lock",
|
|
23
|
+
"LICENSE.txt",
|
|
24
|
+
"README.rdoc",
|
|
25
|
+
"Rakefile",
|
|
26
|
+
"VERSION",
|
|
27
|
+
"lib/mercurial-ruby.rb",
|
|
28
|
+
"lib/mercurial-ruby/branch.rb",
|
|
29
|
+
"lib/mercurial-ruby/changed_file.rb",
|
|
30
|
+
"lib/mercurial-ruby/command.rb",
|
|
31
|
+
"lib/mercurial-ruby/commit.rb",
|
|
32
|
+
"lib/mercurial-ruby/config_file.rb",
|
|
33
|
+
"lib/mercurial-ruby/configuration.rb",
|
|
34
|
+
"lib/mercurial-ruby/diff.rb",
|
|
35
|
+
"lib/mercurial-ruby/factories/branch_factory.rb",
|
|
36
|
+
"lib/mercurial-ruby/factories/changed_file_factory.rb",
|
|
37
|
+
"lib/mercurial-ruby/factories/commit_factory.rb",
|
|
38
|
+
"lib/mercurial-ruby/factories/diff_factory.rb",
|
|
39
|
+
"lib/mercurial-ruby/factories/hook_factory.rb",
|
|
40
|
+
"lib/mercurial-ruby/factories/node_factory.rb",
|
|
41
|
+
"lib/mercurial-ruby/factories/tag_factory.rb",
|
|
42
|
+
"lib/mercurial-ruby/file_index.rb",
|
|
43
|
+
"lib/mercurial-ruby/helper.rb",
|
|
44
|
+
"lib/mercurial-ruby/hook.rb",
|
|
45
|
+
"lib/mercurial-ruby/manifest.rb",
|
|
46
|
+
"lib/mercurial-ruby/node.rb",
|
|
47
|
+
"lib/mercurial-ruby/repository.rb",
|
|
48
|
+
"lib/mercurial-ruby/root_node.rb",
|
|
49
|
+
"lib/mercurial-ruby/shell.rb",
|
|
50
|
+
"lib/mercurial-ruby/style.rb",
|
|
51
|
+
"lib/mercurial-ruby/tag.rb",
|
|
52
|
+
"lib/stdlib_exts/string.rb",
|
|
53
|
+
"lib/styles/changeset.style",
|
|
54
|
+
"lib/styles/file_index.style",
|
|
55
|
+
"mercurial-ruby.gemspec",
|
|
56
|
+
"test/fixtures.rb",
|
|
57
|
+
"test/fixtures/test-repo/.DotFile",
|
|
58
|
+
"test/fixtures/test-repo/.hg/00changelog.i",
|
|
59
|
+
"test/fixtures/test-repo/.hg/branch",
|
|
60
|
+
"test/fixtures/test-repo/.hg/cache/branchheads",
|
|
61
|
+
"test/fixtures/test-repo/.hg/cache/tags",
|
|
62
|
+
"test/fixtures/test-repo/.hg/dirstate",
|
|
63
|
+
"test/fixtures/test-repo/.hg/hgrc",
|
|
64
|
+
"test/fixtures/test-repo/.hg/last-message.txt",
|
|
65
|
+
"test/fixtures/test-repo/.hg/requires",
|
|
66
|
+
"test/fixtures/test-repo/.hg/store/00changelog.i",
|
|
67
|
+
"test/fixtures/test-repo/.hg/store/00manifest.i",
|
|
68
|
+
"test/fixtures/test-repo/.hg/store/data/_file _with _whitespace.pdf.i",
|
|
69
|
+
"test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e.txt.i",
|
|
70
|
+
"test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e2.txt.i",
|
|
71
|
+
"test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e3.txt.i",
|
|
72
|
+
"test/fixtures/test-repo/.hg/store/data/_l_i_c_e_n_s_e4.txt.i",
|
|
73
|
+
"test/fixtures/test-repo/.hg/store/data/_r_e_a_d_m_e.markdown.i",
|
|
74
|
+
"test/fixtures/test-repo/.hg/store/data/_r_e_a_d_m_e.markup.i",
|
|
75
|
+
"test/fixtures/test-repo/.hg/store/data/_rakefile.i",
|
|
76
|
+
"test/fixtures/test-repo/.hg/store/data/_rakefile2.i",
|
|
77
|
+
"test/fixtures/test-repo/.hg/store/data/_rakefile3.i",
|
|
78
|
+
"test/fixtures/test-repo/.hg/store/data/check ~5c this ~5c out ~22 now.i",
|
|
79
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/minitest__mixin.rb.i",
|
|
80
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/options.rb.i",
|
|
81
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/rdoc__mixin.rb.i",
|
|
82
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/rspec__mixin.rb.i",
|
|
83
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/shindo__mixin.rb.i",
|
|
84
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/shoulda__mixin.rb.i",
|
|
85
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/_gemfile.i",
|
|
86
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/_l_i_c_e_n_s_e.txt.i",
|
|
87
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/_r_e_a_d_m_e.rdoc.i",
|
|
88
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/_rakefile.i",
|
|
89
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/bacon/flunking.rb.i",
|
|
90
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/bacon/helper.rb.i",
|
|
91
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/bundler__setup.erb.i",
|
|
92
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/features/default.feature.i",
|
|
93
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/features/support/env.rb.i",
|
|
94
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/jeweler__tasks.erb.i",
|
|
95
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/micronaut/flunking.rb.i",
|
|
96
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/micronaut/helper.rb.i",
|
|
97
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/minitest/flunking.rb.i",
|
|
98
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/minitest/helper.rb.i",
|
|
99
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/other__tasks.erb.i",
|
|
100
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/riot/flunking.rb.i",
|
|
101
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/riot/helper.rb.i",
|
|
102
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/flunking.rb.i",
|
|
103
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/helper.rb.i",
|
|
104
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/rspec/~2erspec.i",
|
|
105
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/shindo/flunking.rb.i",
|
|
106
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/shindo/helper.rb.i",
|
|
107
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/shoulda/flunking.rb.i",
|
|
108
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/shoulda/helper.rb.i",
|
|
109
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/testspec/flunking.rb.i",
|
|
110
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/testspec/helper.rb.i",
|
|
111
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/testunit/flunking.rb.i",
|
|
112
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/testunit/helper.rb.i",
|
|
113
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/~2edocument.i",
|
|
114
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/templates/~2egitignore.i",
|
|
115
|
+
"test/fixtures/test-repo/.hg/store/data/directory two/~2e_d_s___store.i",
|
|
116
|
+
"test/fixtures/test-repo/.hg/store/data/directory__1/rubygems__dot__org__tasks.rb.i",
|
|
117
|
+
"test/fixtures/test-repo/.hg/store/data/directory__1/rubygems__tasks.rb.i",
|
|
118
|
+
"test/fixtures/test-repo/.hg/store/data/directory__1/specification.rb.i",
|
|
119
|
+
"test/fixtures/test-repo/.hg/store/data/directory__1/tasks.rb.i",
|
|
120
|
+
"test/fixtures/test-repo/.hg/store/data/directory__1/~2e_d_s___store.i",
|
|
121
|
+
"test/fixtures/test-repo/.hg/store/data/empty-file.i",
|
|
122
|
+
"test/fixtures/test-repo/.hg/store/data/goose.png.i",
|
|
123
|
+
"test/fixtures/test-repo/.hg/store/data/goose/pretty-thing.txt.i",
|
|
124
|
+
"test/fixtures/test-repo/.hg/store/data/new-directory/another-boring-file.i",
|
|
125
|
+
"test/fixtures/test-repo/.hg/store/data/new-directory/something.csv.i",
|
|
126
|
+
"test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_e_u_l_a5seat___chin___sim02.03.04.pdf.d",
|
|
127
|
+
"test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_e_u_l_a5seat___chin___sim02.03.04.pdf.i",
|
|
128
|
+
"test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/_file _with _whitespace.pdf.i",
|
|
129
|
+
"test/fixtures/test-repo/.hg/store/data/new-directory/subdirectory/beansprout.png.i",
|
|
130
|
+
"test/fixtures/test-repo/.hg/store/data/new-file.i",
|
|
131
|
+
"test/fixtures/test-repo/.hg/store/data/old-directory/minitest__mixin.rb.i",
|
|
132
|
+
"test/fixtures/test-repo/.hg/store/data/old-directory/options.rb.i",
|
|
133
|
+
"test/fixtures/test-repo/.hg/store/data/old-directory/rspec__mixin.rb.i",
|
|
134
|
+
"test/fixtures/test-repo/.hg/store/data/old-directory/shindo__mixin.rb.i",
|
|
135
|
+
"test/fixtures/test-repo/.hg/store/data/old-directory/testunit__mixin.rb.i",
|
|
136
|
+
"test/fixtures/test-repo/.hg/store/data/old-directory/yard__mixin.rb.i",
|
|
137
|
+
"test/fixtures/test-repo/.hg/store/data/riot__mixin.rb.i",
|
|
138
|
+
"test/fixtures/test-repo/.hg/store/data/riot__mixin__copy.rb.i",
|
|
139
|
+
"test/fixtures/test-repo/.hg/store/data/style.i",
|
|
140
|
+
"test/fixtures/test-repo/.hg/store/data/super-cow.i",
|
|
141
|
+
"test/fixtures/test-repo/.hg/store/data/superman.txt.i",
|
|
142
|
+
"test/fixtures/test-repo/.hg/store/data/testspec__mixin.rb.i",
|
|
143
|
+
"test/fixtures/test-repo/.hg/store/data/testspec__mixin__new.rb.i",
|
|
144
|
+
"test/fixtures/test-repo/.hg/store/data/~2e_dot_file.i",
|
|
145
|
+
"test/fixtures/test-repo/.hg/store/data/~2ehgignore.i",
|
|
146
|
+
"test/fixtures/test-repo/.hg/store/data/~2ehgtags.i",
|
|
147
|
+
"test/fixtures/test-repo/.hg/store/fncache",
|
|
148
|
+
"test/fixtures/test-repo/.hg/store/undo",
|
|
149
|
+
"test/fixtures/test-repo/.hg/undo.bookmarks",
|
|
150
|
+
"test/fixtures/test-repo/.hg/undo.branch",
|
|
151
|
+
"test/fixtures/test-repo/.hg/undo.desc",
|
|
152
|
+
"test/fixtures/test-repo/.hg/undo.dirstate",
|
|
153
|
+
"test/fixtures/test-repo/.hgignore",
|
|
154
|
+
"test/fixtures/test-repo/.hgtags",
|
|
155
|
+
"test/fixtures/test-repo/LICENSE3.txt",
|
|
156
|
+
"test/fixtures/test-repo/LICENSE4.txt",
|
|
157
|
+
"test/fixtures/test-repo/README.markup",
|
|
158
|
+
"test/fixtures/test-repo/Rakefile3",
|
|
159
|
+
"test/fixtures/test-repo/check \\ this \\ out \" now",
|
|
160
|
+
"test/fixtures/test-repo/empty-file",
|
|
161
|
+
"test/fixtures/test-repo/goose.png",
|
|
162
|
+
"test/fixtures/test-repo/goose/pretty-thing.txt",
|
|
163
|
+
"test/fixtures/test-repo/new-directory/another-boring-file",
|
|
164
|
+
"test/fixtures/test-repo/new-directory/something.csv",
|
|
165
|
+
"test/fixtures/test-repo/new-directory/subdirectory/EULA5seat_Chin_Sim02.03.04.pdf",
|
|
166
|
+
"test/fixtures/test-repo/new-directory/subdirectory/File With Whitespace.pdf",
|
|
167
|
+
"test/fixtures/test-repo/new-directory/subdirectory/beansprout.png",
|
|
168
|
+
"test/fixtures/test-repo/riot_mixin.rb",
|
|
169
|
+
"test/fixtures/test-repo/style",
|
|
170
|
+
"test/fixtures/test-repo/superman.txt",
|
|
171
|
+
"test/fixtures/test-repo/testspec_mixin_new.rb",
|
|
172
|
+
"test/helper.rb",
|
|
173
|
+
"test/test_branch_factory.rb",
|
|
174
|
+
"test/test_changed_file.rb",
|
|
175
|
+
"test/test_changed_file_factory.rb",
|
|
176
|
+
"test/test_command.rb",
|
|
177
|
+
"test/test_commit.rb",
|
|
178
|
+
"test/test_commit_factory.rb",
|
|
179
|
+
"test/test_config_file.rb",
|
|
180
|
+
"test/test_configuration.rb",
|
|
181
|
+
"test/test_diff.rb",
|
|
182
|
+
"test/test_diff_factory.rb",
|
|
183
|
+
"test/test_file_index.rb",
|
|
184
|
+
"test/test_hook.rb",
|
|
185
|
+
"test/test_hook_factory.rb",
|
|
186
|
+
"test/test_manifest.rb",
|
|
187
|
+
"test/test_node.rb",
|
|
188
|
+
"test/test_node_factory.rb",
|
|
189
|
+
"test/test_repository.rb",
|
|
190
|
+
"test/test_shell.rb",
|
|
191
|
+
"test/test_tag_factory.rb"
|
|
192
|
+
]
|
|
193
|
+
s.homepage = %q{http://github.com/iSabanin/mercurial-ruby}
|
|
194
|
+
s.licenses = ["MIT"]
|
|
195
|
+
s.require_paths = ["lib"]
|
|
196
|
+
s.rubygems_version = %q{1.3.7}
|
|
197
|
+
s.summary = %q{Ruby API for Mercurial DVCS.}
|
|
198
|
+
|
|
199
|
+
if s.respond_to? :specification_version then
|
|
200
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
201
|
+
s.specification_version = 3
|
|
202
|
+
|
|
203
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
204
|
+
s.add_development_dependency(%q<minitest>, [">= 0"])
|
|
205
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
206
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
|
|
207
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
|
208
|
+
s.add_development_dependency(%q<mocha>, ["~> 0.9"])
|
|
209
|
+
s.add_development_dependency(%q<ruby-debug>, ["~> 0.10"])
|
|
210
|
+
else
|
|
211
|
+
s.add_dependency(%q<minitest>, [">= 0"])
|
|
212
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
213
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
|
214
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
|
215
|
+
s.add_dependency(%q<mocha>, ["~> 0.9"])
|
|
216
|
+
s.add_dependency(%q<ruby-debug>, ["~> 0.10"])
|
|
217
|
+
end
|
|
218
|
+
else
|
|
219
|
+
s.add_dependency(%q<minitest>, [">= 0"])
|
|
220
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
|
221
|
+
s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
|
|
222
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
|
223
|
+
s.add_dependency(%q<mocha>, ["~> 0.9"])
|
|
224
|
+
s.add_dependency(%q<ruby-debug>, ["~> 0.10"])
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
data/test/fixtures.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
module Fixtures
|
|
2
|
+
extend self
|
|
3
|
+
|
|
4
|
+
def test_repo
|
|
5
|
+
File.join(directory, 'test-repo')
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def hgrc_sample
|
|
9
|
+
%q[[paths]
|
|
10
|
+
default = http://selenic.com/hg
|
|
11
|
+
|
|
12
|
+
[hooks]
|
|
13
|
+
changegroup = /Users/ilya/work/beanstalk/script/mercurial/changegroup.rb
|
|
14
|
+
commit =/Users/ilya/work/beanstalk/script/mercurial/commit.rb
|
|
15
|
+
|
|
16
|
+
[ui]
|
|
17
|
+
username = Firstname Lastname <firstname.lastname@example.net>
|
|
18
|
+
verbose = True
|
|
19
|
+
|
|
20
|
+
# [revlog]
|
|
21
|
+
# format=0 for revlog; format=1 for revlogng]
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def directory
|
|
25
|
+
File.join(File.dirname(__FILE__), 'fixtures')
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hey, I'm a file with dot in it's name and I'll break you.
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
default
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
2d32410d9629075b0bb4aba48f6fd2f283ef8ffe 35
|
|
2
|
+
2d32410d9629075b0bb4aba48f6fd2f283ef8ffe default
|
|
3
|
+
63e18640e83af60196334f16cc31f4f99c419918 new-branch
|
|
4
|
+
3cdad3d3ca0054ebfcd2652cc83442bd0d272bbb old-branch
|
|
5
|
+
16fac694db0a52edfd266576acafb475f7f8420f branch-from-remote
|
|
6
|
+
3e1ea66bdd04dbfb8d91e4f2de3baca218cd4cca another-branch
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
35 2d32410d9629075b0bb4aba48f6fd2f283ef8ffe 6c81f549f60e460380bbc055b3ce4dede0d754a1
|
|
2
|
+
16 3e1ea66bdd04dbfb8d91e4f2de3baca218cd4cca 874075ae897fb53a3e706386330db170be5d8bf2
|
|
3
|
+
10 16fac694db0a52edfd266576acafb475f7f8420f 6c81f549f60e460380bbc055b3ce4dede0d754a1
|
|
4
|
+
5 3cdad3d3ca0054ebfcd2652cc83442bd0d272bbb
|
|
5
|
+
|
|
6
|
+
bf6386c0a0ccd1282dbbe51888f52fe82b1806e3 new-tag
|
|
7
|
+
63f70b2314ede1e12813cae87f6f303ee8d5c09a new-branch-tag
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Added file with weird characters in it's name
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/test/fixtures/test-repo/.hg/store/data/directory two/templates/features/default.feature.i
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|