ohloh_scm 2.5.1 → 3.0.1
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.
- checksums.yaml +5 -5
- data/{bin → .bin}/accept_svn_ssl_certificate +0 -0
- data/.bin/check_scm_version +28 -0
- data/.bin/run-test +3 -0
- data/.bin/run-tests +3 -0
- data/{bin → .bin}/string_encoder +0 -0
- data/.git_hooks/pre-commit +20 -0
- data/.gitignore +1 -4
- data/.rubocop.yml +13 -0
- data/.ruby-version +1 -2
- data/.travis.yml +3 -2
- data/Dockerfile +8 -4
- data/Gemfile +14 -0
- data/Gemfile.lock +54 -0
- data/{COPYING → LICENSE.txt} +0 -0
- data/README.md +52 -116
- data/Rakefile +7 -29
- data/lib/ohloh_scm.rb +26 -32
- data/lib/ohloh_scm/activity.rb +38 -0
- data/lib/ohloh_scm/bzr.rb +12 -0
- data/lib/ohloh_scm/bzr/activity.rb +191 -0
- data/lib/ohloh_scm/bzr/scm.rb +24 -0
- data/lib/ohloh_scm/bzr/status.rb +8 -0
- data/lib/ohloh_scm/bzr/validation.rb +18 -0
- data/lib/ohloh_scm/commit.rb +44 -41
- data/lib/ohloh_scm/core.rb +22 -0
- data/lib/ohloh_scm/cvs.rb +11 -0
- data/lib/ohloh_scm/cvs/activity.rb +149 -0
- data/lib/ohloh_scm/cvs/scm.rb +149 -0
- data/lib/ohloh_scm/cvs/status.rb +14 -0
- data/lib/ohloh_scm/cvs/validation.rb +106 -0
- data/lib/ohloh_scm/data/git_ignore_list.rb +29 -0
- data/lib/ohloh_scm/diff.rb +42 -39
- data/lib/ohloh_scm/factory.rb +11 -0
- data/lib/ohloh_scm/git.rb +11 -0
- data/lib/ohloh_scm/git/activity.rb +317 -0
- data/lib/ohloh_scm/git/scm.rb +137 -0
- data/lib/ohloh_scm/git/status.rb +13 -0
- data/lib/ohloh_scm/git/validation.rb +18 -0
- data/lib/ohloh_scm/git_svn.rb +11 -0
- data/lib/ohloh_scm/git_svn/activity.rb +84 -0
- data/lib/ohloh_scm/git_svn/scm.rb +91 -0
- data/lib/ohloh_scm/git_svn/status.rb +8 -0
- data/lib/ohloh_scm/git_svn/validation.rb +8 -0
- data/lib/ohloh_scm/hg.rb +12 -0
- data/lib/ohloh_scm/hg/activity.rb +188 -0
- data/lib/ohloh_scm/hg/scm.rb +51 -0
- data/lib/ohloh_scm/hg/status.rb +8 -0
- data/lib/ohloh_scm/hg/validation.rb +18 -0
- data/lib/ohloh_scm/parser.rb +30 -0
- data/lib/ohloh_scm/parser/array_writer.rb +15 -0
- data/lib/ohloh_scm/parser/branch_number.rb +63 -0
- data/lib/ohloh_scm/{parsers → parser}/bzr_xml_parser.rb +65 -55
- data/lib/ohloh_scm/parser/cvs_parser.rb +161 -0
- data/lib/ohloh_scm/parser/git_parser.rb +128 -0
- data/lib/ohloh_scm/parser/hg_parser.rb +78 -0
- data/lib/ohloh_scm/{parsers → parser}/hg_style +0 -0
- data/lib/ohloh_scm/{parsers → parser}/hg_verbose_style +0 -0
- data/lib/ohloh_scm/parser/svn_parser.rb +83 -0
- data/lib/ohloh_scm/py_bridge.rb +9 -0
- data/lib/ohloh_scm/py_bridge/bzr_client.rb +28 -0
- data/lib/ohloh_scm/{adapters/bzrlib/bzrlib_pipe_server.py → py_bridge/bzr_server.py} +1 -1
- data/lib/ohloh_scm/py_bridge/hg_client.rb +30 -0
- data/lib/ohloh_scm/{adapters/hglib/server.py → py_bridge/hg_server.py} +0 -0
- data/lib/ohloh_scm/py_bridge/py_client.rb +45 -0
- data/lib/ohloh_scm/scm.rb +26 -0
- data/lib/ohloh_scm/status.rb +24 -0
- data/lib/ohloh_scm/string_extensions.rb +11 -0
- data/lib/ohloh_scm/svn.rb +11 -0
- data/lib/ohloh_scm/svn/activity.rb +95 -0
- data/lib/ohloh_scm/svn/scm.rb +95 -0
- data/lib/ohloh_scm/svn/status.rb +8 -0
- data/lib/ohloh_scm/svn/validation.rb +56 -0
- data/lib/ohloh_scm/system.rb +44 -0
- data/lib/ohloh_scm/validation.rb +83 -0
- data/lib/ohloh_scm/version.rb +8 -1
- data/ohloh_scm.gemspec +18 -15
- data/spec/.rubocop.yml +22 -0
- data/spec/benchmarks/hg_bzr_bash_vs_py_api.rb +39 -0
- data/spec/benchmarks/process_spawn_benchmark.rb +133 -0
- data/spec/helpers/assert_scm_attr_helper.rb +31 -0
- data/spec/helpers/commit_tokens_helper.rb +26 -0
- data/spec/helpers/generic_helper.rb +5 -0
- data/spec/helpers/repository_helper.rb +36 -0
- data/spec/helpers/system_helper.rb +25 -0
- data/spec/ohloh_scm/bzr/activity_spec.rb +460 -0
- data/spec/ohloh_scm/bzr/scm_spec.rb +17 -0
- data/spec/ohloh_scm/bzr/validation_spec.rb +37 -0
- data/spec/ohloh_scm/cvs/activity_spec.rb +93 -0
- data/spec/ohloh_scm/cvs/scm_spec.rb +112 -0
- data/spec/ohloh_scm/cvs/validation_spec.rb +78 -0
- data/spec/ohloh_scm/factory_spec.rb +16 -0
- data/spec/ohloh_scm/git/activity_spec.rb +402 -0
- data/spec/ohloh_scm/git/scm_spec.rb +57 -0
- data/spec/ohloh_scm/git/status_spec.rb +11 -0
- data/spec/ohloh_scm/git/validation_spec.rb +57 -0
- data/spec/ohloh_scm/git_svn/activity_spec.rb +89 -0
- data/spec/ohloh_scm/git_svn/scm_spec.rb +22 -0
- data/spec/ohloh_scm/hg/activity_spec.rb +323 -0
- data/spec/ohloh_scm/hg/scm_spec.rb +23 -0
- data/spec/ohloh_scm/hg/status_spec.rb +12 -0
- data/spec/ohloh_scm/hg/validation_spec.rb +32 -0
- data/spec/ohloh_scm/parser/array_writer_spec.rb +29 -0
- data/spec/ohloh_scm/parser/branch_number_spec.rb +126 -0
- data/spec/ohloh_scm/parser/cvs_parser_spec.rb +77 -0
- data/spec/ohloh_scm/parser/git_parser_spec.rb +102 -0
- data/spec/ohloh_scm/parser/hg_parser_spec.rb +194 -0
- data/spec/ohloh_scm/svn/activity_spec.rb +55 -0
- data/spec/ohloh_scm/svn/scm_spec.rb +75 -0
- data/spec/ohloh_scm/svn/validation_spec.rb +89 -0
- data/spec/ohloh_scm/svn_parser_spec.rb +146 -0
- data/spec/ohloh_scm/system_spec.rb +32 -0
- data/spec/ohloh_scm/version_spec.rb +9 -0
- data/{test/data → spec/raw_fixtures}/basic.rlog +0 -0
- data/{test/data → spec/raw_fixtures}/file_created_on_branch.rlog +0 -0
- data/{test/data → spec/raw_fixtures}/invalid-utf-word +0 -0
- data/{test/data → spec/raw_fixtures}/multiple_revisions.rlog +0 -0
- data/{test/data → spec/raw_fixtures}/sample-content +0 -0
- data/{test/data → spec/raw_fixtures}/simple.ohlog +1 -1
- data/{test/data → spec/raw_fixtures}/simple.svn_log +0 -0
- data/{test/data → spec/raw_fixtures}/simultaneous_checkins.rlog +0 -0
- data/{test/data → spec/raw_fixtures}/simultaneous_checkins_2.rlog +0 -0
- data/spec/scm_fixtures/bzr.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/bzr_colon.tgz +0 -0
- data/spec/scm_fixtures/bzr_large.tgz +0 -0
- data/spec/scm_fixtures/bzr_with_authors.tgz +0 -0
- data/spec/scm_fixtures/bzr_with_branch.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/bzr_with_invalid_encoding.tgz +0 -0
- data/spec/scm_fixtures/bzr_with_nested_branches.tgz +0 -0
- data/spec/scm_fixtures/bzr_with_subdirectories.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/cvs.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/git.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/git_dupe_delete.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/git_svn.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/git_walk.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/git_with_invalid_encoding.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/git_with_master_tag.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/git_with_multiple_branch.tgz +0 -0
- data/spec/scm_fixtures/git_with_mv.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/git_with_null_merge.tgz +0 -0
- data/spec/scm_fixtures/git_with_submodules.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/hg.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/hg_dupe_delete.tgz +0 -0
- data/spec/scm_fixtures/hg_large.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/hg_walk.tgz +0 -0
- data/{test/repositories → spec/scm_fixtures}/hg_with_invalid_encoding.tgz +0 -0
- data/spec/scm_fixtures/svn.tgz +0 -0
- data/spec/scm_fixtures/svn_subdir.tgz +0 -0
- data/spec/spec_helper.rb +32 -0
- data/spec/string_encoder_spec.rb +32 -0
- metadata +224 -1052
- data/bin/ohlog +0 -152
- data/lib/ohloh_scm/adapters/abstract/misc.rb +0 -12
- data/lib/ohloh_scm/adapters/abstract/sha1.rb +0 -48
- data/lib/ohloh_scm/adapters/abstract/system.rb +0 -60
- data/lib/ohloh_scm/adapters/abstract/validation.rb +0 -77
- data/lib/ohloh_scm/adapters/abstract_adapter.rb +0 -32
- data/lib/ohloh_scm/adapters/bzr/cat_file.rb +0 -25
- data/lib/ohloh_scm/adapters/bzr/commits.rb +0 -100
- data/lib/ohloh_scm/adapters/bzr/head.rb +0 -19
- data/lib/ohloh_scm/adapters/bzr/misc.rb +0 -61
- data/lib/ohloh_scm/adapters/bzr/pull.rb +0 -22
- data/lib/ohloh_scm/adapters/bzr/push.rb +0 -51
- data/lib/ohloh_scm/adapters/bzr/validation.rb +0 -16
- data/lib/ohloh_scm/adapters/bzr_adapter.rb +0 -15
- data/lib/ohloh_scm/adapters/bzrlib/bzrlib_pipe_client.rb +0 -71
- data/lib/ohloh_scm/adapters/bzrlib/cat_file.rb +0 -9
- data/lib/ohloh_scm/adapters/bzrlib/head.rb +0 -9
- data/lib/ohloh_scm/adapters/bzrlib_adapter.rb +0 -25
- data/lib/ohloh_scm/adapters/cvs/commits.rb +0 -97
- data/lib/ohloh_scm/adapters/cvs/misc.rb +0 -212
- data/lib/ohloh_scm/adapters/cvs/validation.rb +0 -77
- data/lib/ohloh_scm/adapters/cvs_adapter.rb +0 -18
- data/lib/ohloh_scm/adapters/factory.rb +0 -38
- data/lib/ohloh_scm/adapters/git/cat_file.rb +0 -16
- data/lib/ohloh_scm/adapters/git/commit_all.rb +0 -141
- data/lib/ohloh_scm/adapters/git/commits.rb +0 -122
- data/lib/ohloh_scm/adapters/git/head.rb +0 -21
- data/lib/ohloh_scm/adapters/git/misc.rb +0 -107
- data/lib/ohloh_scm/adapters/git/patch.rb +0 -9
- data/lib/ohloh_scm/adapters/git/pull.rb +0 -124
- data/lib/ohloh_scm/adapters/git/push.rb +0 -39
- data/lib/ohloh_scm/adapters/git/token.rb +0 -53
- data/lib/ohloh_scm/adapters/git/validation.rb +0 -50
- data/lib/ohloh_scm/adapters/git_adapter.rb +0 -18
- data/lib/ohloh_scm/adapters/git_svn/cat_file.rb +0 -22
- data/lib/ohloh_scm/adapters/git_svn/commits.rb +0 -57
- data/lib/ohloh_scm/adapters/git_svn/head.rb +0 -9
- data/lib/ohloh_scm/adapters/git_svn/misc.rb +0 -24
- data/lib/ohloh_scm/adapters/git_svn/pull.rb +0 -80
- data/lib/ohloh_scm/adapters/git_svn_adapter.rb +0 -13
- data/lib/ohloh_scm/adapters/hg/cat_file.rb +0 -28
- data/lib/ohloh_scm/adapters/hg/commits.rb +0 -112
- data/lib/ohloh_scm/adapters/hg/head.rb +0 -29
- data/lib/ohloh_scm/adapters/hg/misc.rb +0 -40
- data/lib/ohloh_scm/adapters/hg/patch.rb +0 -9
- data/lib/ohloh_scm/adapters/hg/pull.rb +0 -23
- data/lib/ohloh_scm/adapters/hg/push.rb +0 -51
- data/lib/ohloh_scm/adapters/hg/validation.rb +0 -26
- data/lib/ohloh_scm/adapters/hg_adapter.rb +0 -21
- data/lib/ohloh_scm/adapters/hglib/cat_file.rb +0 -14
- data/lib/ohloh_scm/adapters/hglib/client.rb +0 -62
- data/lib/ohloh_scm/adapters/hglib/head.rb +0 -9
- data/lib/ohloh_scm/adapters/hglib_adapter.rb +0 -25
- data/lib/ohloh_scm/adapters/svn/cat_file.rb +0 -19
- data/lib/ohloh_scm/adapters/svn/commits.rb +0 -195
- data/lib/ohloh_scm/adapters/svn/head.rb +0 -19
- data/lib/ohloh_scm/adapters/svn/misc.rb +0 -171
- data/lib/ohloh_scm/adapters/svn/patch.rb +0 -8
- data/lib/ohloh_scm/adapters/svn/pre-revprop-change +0 -2
- data/lib/ohloh_scm/adapters/svn/pull.rb +0 -77
- data/lib/ohloh_scm/adapters/svn/push.rb +0 -15
- data/lib/ohloh_scm/adapters/svn/validation.rb +0 -87
- data/lib/ohloh_scm/adapters/svn_adapter.rb +0 -17
- data/lib/ohloh_scm/adapters/svn_chain/cat_file.rb +0 -8
- data/lib/ohloh_scm/adapters/svn_chain/chain.rb +0 -100
- data/lib/ohloh_scm/adapters/svn_chain/commits.rb +0 -37
- data/lib/ohloh_scm/adapters/svn_chain_adapter.rb +0 -44
- data/lib/ohloh_scm/parsers/array_writer.rb +0 -19
- data/lib/ohloh_scm/parsers/branch_number.rb +0 -60
- data/lib/ohloh_scm/parsers/bzr_parser.rb +0 -128
- data/lib/ohloh_scm/parsers/cvs_parser.rb +0 -182
- data/lib/ohloh_scm/parsers/git_parser.rb +0 -67
- data/lib/ohloh_scm/parsers/git_styled_parser.rb +0 -95
- data/lib/ohloh_scm/parsers/hg_parser.rb +0 -63
- data/lib/ohloh_scm/parsers/hg_styled_parser.rb +0 -65
- data/lib/ohloh_scm/parsers/human_writer.rb +0 -49
- data/lib/ohloh_scm/parsers/parser.rb +0 -34
- data/lib/ohloh_scm/parsers/svn_parser.rb +0 -77
- data/lib/ohloh_scm/parsers/svn_xml_parser.rb +0 -62
- data/lib/ohloh_scm/parsers/xml_writer.rb +0 -62
- data/lib/ohloh_scm/scratch_dir.rb +0 -59
- data/lib/ohloh_scm/shellout.rb +0 -40
- data/log/.gitignore +0 -1
- data/test/bin/svn +0 -7
- data/test/data/basic.ohlog +0 -11
- data/test/data/branch_merge.bzr_xml_log +0 -87
- data/test/data/git_patch.diff +0 -19
- data/test/data/helloworld.log +0 -41
- data/test/data/hg_patch.diff +0 -9
- data/test/data/intelliglue.rlog +0 -1216
- data/test/data/multiple_commits.rlog +0 -64
- data/test/data/simple.bzr_xml_log +0 -41
- data/test/data/simple.svn_xml_log +0 -66
- data/test/data/svn_patch.diff +0 -9
- data/test/data/svn_with_invalid_encoding.log +0 -33
- data/test/repositories/bzr/.bzr/README +0 -3
- data/test/repositories/bzr/.bzr/branch-format +0 -1
- data/test/repositories/bzr/.bzr/branch/branch.conf +0 -0
- data/test/repositories/bzr/.bzr/branch/format +0 -1
- data/test/repositories/bzr/.bzr/branch/last-revision +0 -1
- data/test/repositories/bzr/.bzr/branch/tags +0 -1
- data/test/repositories/bzr/.bzr/checkout/conflicts +0 -1
- data/test/repositories/bzr/.bzr/checkout/dirstate +0 -0
- data/test/repositories/bzr/.bzr/checkout/format +0 -1
- data/test/repositories/bzr/.bzr/repository/format +0 -1
- data/test/repositories/bzr/.bzr/repository/indices/0428489d1a03d05c496c2c429fe96e90.iix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/0428489d1a03d05c496c2c429fe96e90.rix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/0428489d1a03d05c496c2c429fe96e90.six +0 -5
- data/test/repositories/bzr/.bzr/repository/indices/0428489d1a03d05c496c2c429fe96e90.tix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/62f9cada7c58bce361b9b852d180ff56.iix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/62f9cada7c58bce361b9b852d180ff56.rix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/62f9cada7c58bce361b9b852d180ff56.six +0 -5
- data/test/repositories/bzr/.bzr/repository/indices/62f9cada7c58bce361b9b852d180ff56.tix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/71af8bae249bcb824a4ff17c62029142.iix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/71af8bae249bcb824a4ff17c62029142.rix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/71af8bae249bcb824a4ff17c62029142.six +0 -5
- data/test/repositories/bzr/.bzr/repository/indices/71af8bae249bcb824a4ff17c62029142.tix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/7202eb77b81a80eca5296f317ed42149.iix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/7202eb77b81a80eca5296f317ed42149.rix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/7202eb77b81a80eca5296f317ed42149.six +0 -5
- data/test/repositories/bzr/.bzr/repository/indices/7202eb77b81a80eca5296f317ed42149.tix +0 -5
- data/test/repositories/bzr/.bzr/repository/indices/8a571ba35ee54cd133b71e967442fe17.iix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/8a571ba35ee54cd133b71e967442fe17.rix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/8a571ba35ee54cd133b71e967442fe17.six +0 -5
- data/test/repositories/bzr/.bzr/repository/indices/8a571ba35ee54cd133b71e967442fe17.tix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/a06b9c10004fc3e05affee8cf0a9febd.iix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/a06b9c10004fc3e05affee8cf0a9febd.rix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/a06b9c10004fc3e05affee8cf0a9febd.six +0 -5
- data/test/repositories/bzr/.bzr/repository/indices/a06b9c10004fc3e05affee8cf0a9febd.tix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/f35e1020b6a55c81b6d2fe4c7bcd4645.iix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/f35e1020b6a55c81b6d2fe4c7bcd4645.rix +0 -0
- data/test/repositories/bzr/.bzr/repository/indices/f35e1020b6a55c81b6d2fe4c7bcd4645.six +0 -5
- data/test/repositories/bzr/.bzr/repository/indices/f35e1020b6a55c81b6d2fe4c7bcd4645.tix +0 -0
- data/test/repositories/bzr/.bzr/repository/pack-names +0 -0
- data/test/repositories/bzr/.bzr/repository/packs/0428489d1a03d05c496c2c429fe96e90.pack +0 -0
- data/test/repositories/bzr/.bzr/repository/packs/62f9cada7c58bce361b9b852d180ff56.pack +0 -0
- data/test/repositories/bzr/.bzr/repository/packs/71af8bae249bcb824a4ff17c62029142.pack +0 -0
- data/test/repositories/bzr/.bzr/repository/packs/7202eb77b81a80eca5296f317ed42149.pack +0 -0
- data/test/repositories/bzr/.bzr/repository/packs/8a571ba35ee54cd133b71e967442fe17.pack +0 -0
- data/test/repositories/bzr/.bzr/repository/packs/a06b9c10004fc3e05affee8cf0a9febd.pack +0 -0
- data/test/repositories/bzr/.bzr/repository/packs/f35e1020b6a55c81b6d2fe4c7bcd4645.pack +0 -0
- data/test/repositories/bzr/.bzr/repository/upload/.gitignore +0 -1
- data/test/repositories/bzr/C/303/251dric.txt +0 -2
- data/test/repositories/bzr/file1.txt +0 -2
- data/test/repositories/bzr/file3.txt +0 -1
- data/test/repositories/bzr/file4.txt +0 -1
- data/test/repositories/bzr/file5.txt +0 -4
- data/test/repositories/bzr_hello_world/.bzr/README +0 -3
- data/test/repositories/bzr_hello_world/.bzr/branch-format +0 -1
- data/test/repositories/bzr_hello_world/.bzr/branch/branch.conf +0 -0
- data/test/repositories/bzr_hello_world/.bzr/branch/format +0 -1
- data/test/repositories/bzr_hello_world/.bzr/branch/last-revision +0 -1
- data/test/repositories/bzr_hello_world/.bzr/branch/tags +0 -0
- data/test/repositories/bzr_hello_world/.bzr/checkout/conflicts +0 -1
- data/test/repositories/bzr_hello_world/.bzr/checkout/dirstate +0 -0
- data/test/repositories/bzr_hello_world/.bzr/checkout/format +0 -1
- data/test/repositories/bzr_hello_world/.bzr/repository/format +0 -1
- data/test/repositories/bzr_hello_world/.bzr/repository/indices/a7cd0d6de5d8b3efdd5f61a4caeda296.iix +0 -0
- data/test/repositories/bzr_hello_world/.bzr/repository/indices/a7cd0d6de5d8b3efdd5f61a4caeda296.rix +0 -0
- data/test/repositories/bzr_hello_world/.bzr/repository/indices/a7cd0d6de5d8b3efdd5f61a4caeda296.six +0 -5
- data/test/repositories/bzr_hello_world/.bzr/repository/indices/a7cd0d6de5d8b3efdd5f61a4caeda296.tix +0 -0
- data/test/repositories/bzr_hello_world/.bzr/repository/indices/ed1e97c1213220a92ff857169867a7b3.iix +0 -0
- data/test/repositories/bzr_hello_world/.bzr/repository/indices/ed1e97c1213220a92ff857169867a7b3.rix +0 -0
- data/test/repositories/bzr_hello_world/.bzr/repository/indices/ed1e97c1213220a92ff857169867a7b3.six +0 -5
- data/test/repositories/bzr_hello_world/.bzr/repository/indices/ed1e97c1213220a92ff857169867a7b3.tix +0 -0
- data/test/repositories/bzr_hello_world/.bzr/repository/pack-names +0 -0
- data/test/repositories/bzr_hello_world/.bzr/repository/packs/a7cd0d6de5d8b3efdd5f61a4caeda296.pack +0 -0
- data/test/repositories/bzr_hello_world/.bzr/repository/packs/ed1e97c1213220a92ff857169867a7b3.pack +0 -0
- data/test/repositories/bzr_hello_world/helloworld.c +0 -6
- data/test/repositories/bzr_with_authors/.bzr/README +0 -3
- data/test/repositories/bzr_with_authors/.bzr/branch-format +0 -1
- data/test/repositories/bzr_with_authors/.bzr/branch/branch.conf +0 -0
- data/test/repositories/bzr_with_authors/.bzr/branch/format +0 -1
- data/test/repositories/bzr_with_authors/.bzr/branch/last-revision +0 -1
- data/test/repositories/bzr_with_authors/.bzr/branch/tags +0 -0
- data/test/repositories/bzr_with_authors/.bzr/checkout/conflicts +0 -1
- data/test/repositories/bzr_with_authors/.bzr/checkout/dirstate +0 -0
- data/test/repositories/bzr_with_authors/.bzr/checkout/format +0 -1
- data/test/repositories/bzr_with_authors/.bzr/checkout/views +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/format +0 -1
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/1326ecee2f4f69991771137c5307689a.cix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/1326ecee2f4f69991771137c5307689a.iix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/1326ecee2f4f69991771137c5307689a.rix +0 -6
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/1326ecee2f4f69991771137c5307689a.six +0 -5
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/1326ecee2f4f69991771137c5307689a.tix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/adf730b6cf7c7959afcedb87e155654d.cix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/adf730b6cf7c7959afcedb87e155654d.iix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/adf730b6cf7c7959afcedb87e155654d.rix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/adf730b6cf7c7959afcedb87e155654d.six +0 -5
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/adf730b6cf7c7959afcedb87e155654d.tix +0 -6
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/d2613fcfb5e48e79073b96270782f95c.cix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/d2613fcfb5e48e79073b96270782f95c.iix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/d2613fcfb5e48e79073b96270782f95c.rix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/d2613fcfb5e48e79073b96270782f95c.six +0 -5
- data/test/repositories/bzr_with_authors/.bzr/repository/indices/d2613fcfb5e48e79073b96270782f95c.tix +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/pack-names +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/packs/1326ecee2f4f69991771137c5307689a.pack +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/packs/adf730b6cf7c7959afcedb87e155654d.pack +0 -0
- data/test/repositories/bzr_with_authors/.bzr/repository/packs/d2613fcfb5e48e79073b96270782f95c.pack +0 -0
- data/test/repositories/bzr_with_authors/test.txt +0 -1
- data/test/repositories/bzr_with_branch/.bzr/README +0 -3
- data/test/repositories/bzr_with_branch/.bzr/branch-format +0 -1
- data/test/repositories/bzr_with_branch/.bzr/branch/branch.conf +0 -1
- data/test/repositories/bzr_with_branch/.bzr/branch/format +0 -1
- data/test/repositories/bzr_with_branch/.bzr/branch/last-revision +0 -1
- data/test/repositories/bzr_with_branch/.bzr/branch/tags +0 -0
- data/test/repositories/bzr_with_branch/.bzr/checkout/conflicts +0 -1
- data/test/repositories/bzr_with_branch/.bzr/checkout/dirstate +0 -0
- data/test/repositories/bzr_with_branch/.bzr/checkout/format +0 -1
- data/test/repositories/bzr_with_branch/.bzr/checkout/merge-hashes +0 -3
- data/test/repositories/bzr_with_branch/.bzr/repository/format +0 -1
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/3336f250dbe86a7eec2de4c1b1f97db7.iix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/3336f250dbe86a7eec2de4c1b1f97db7.rix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/3336f250dbe86a7eec2de4c1b1f97db7.six +0 -5
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/3336f250dbe86a7eec2de4c1b1f97db7.tix +0 -5
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/47cfe65310e6d462bb87a68fff0bc162.iix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/47cfe65310e6d462bb87a68fff0bc162.rix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/47cfe65310e6d462bb87a68fff0bc162.six +0 -5
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/47cfe65310e6d462bb87a68fff0bc162.tix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/64e98edbf1aebe6f532f2f93b24eead8.iix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/64e98edbf1aebe6f532f2f93b24eead8.rix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/64e98edbf1aebe6f532f2f93b24eead8.six +0 -5
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/64e98edbf1aebe6f532f2f93b24eead8.tix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/8008794e258fc3fa4be68d538312a91c.iix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/8008794e258fc3fa4be68d538312a91c.rix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/8008794e258fc3fa4be68d538312a91c.six +0 -5
- data/test/repositories/bzr_with_branch/.bzr/repository/indices/8008794e258fc3fa4be68d538312a91c.tix +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/pack-names +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/packs/3336f250dbe86a7eec2de4c1b1f97db7.pack +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/packs/47cfe65310e6d462bb87a68fff0bc162.pack +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/packs/64e98edbf1aebe6f532f2f93b24eead8.pack +0 -0
- data/test/repositories/bzr_with_branch/.bzr/repository/packs/8008794e258fc3fa4be68d538312a91c.pack +0 -0
- data/test/repositories/bzr_with_branch/goodbyeworld.c +0 -5
- data/test/repositories/bzr_with_branch/helloworld.c +0 -6
- data/test/repositories/bzr_with_nested_branches/.bzr/README +0 -3
- data/test/repositories/bzr_with_nested_branches/.bzr/branch-format +0 -1
- data/test/repositories/bzr_with_nested_branches/.bzr/branch/branch.conf +0 -1
- data/test/repositories/bzr_with_nested_branches/.bzr/branch/format +0 -1
- data/test/repositories/bzr_with_nested_branches/.bzr/branch/last-revision +0 -1
- data/test/repositories/bzr_with_nested_branches/.bzr/branch/tags +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/checkout/conflicts +0 -1
- data/test/repositories/bzr_with_nested_branches/.bzr/checkout/dirstate +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/checkout/format +0 -1
- data/test/repositories/bzr_with_nested_branches/.bzr/checkout/merge-hashes +0 -6
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/format +0 -1
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/0428489d1a03d05c496c2c429fe96e90.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/0428489d1a03d05c496c2c429fe96e90.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/0428489d1a03d05c496c2c429fe96e90.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/0428489d1a03d05c496c2c429fe96e90.tix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/30fcaac048e328a7727156986055f6e8.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/30fcaac048e328a7727156986055f6e8.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/30fcaac048e328a7727156986055f6e8.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/30fcaac048e328a7727156986055f6e8.tix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/673cc297ed321f667e1d8d4fff600829.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/673cc297ed321f667e1d8d4fff600829.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/673cc297ed321f667e1d8d4fff600829.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/673cc297ed321f667e1d8d4fff600829.tix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/71af8bae249bcb824a4ff17c62029142.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/71af8bae249bcb824a4ff17c62029142.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/71af8bae249bcb824a4ff17c62029142.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/71af8bae249bcb824a4ff17c62029142.tix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/7202eb77b81a80eca5296f317ed42149.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/7202eb77b81a80eca5296f317ed42149.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/7202eb77b81a80eca5296f317ed42149.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/7202eb77b81a80eca5296f317ed42149.tix +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/8a571ba35ee54cd133b71e967442fe17.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/8a571ba35ee54cd133b71e967442fe17.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/8a571ba35ee54cd133b71e967442fe17.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/8a571ba35ee54cd133b71e967442fe17.tix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/a06b9c10004fc3e05affee8cf0a9febd.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/a06b9c10004fc3e05affee8cf0a9febd.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/a06b9c10004fc3e05affee8cf0a9febd.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/a06b9c10004fc3e05affee8cf0a9febd.tix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/da6c79a024c70fd6831e323430a96cc8.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/da6c79a024c70fd6831e323430a96cc8.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/da6c79a024c70fd6831e323430a96cc8.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/da6c79a024c70fd6831e323430a96cc8.tix +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/f35e1020b6a55c81b6d2fe4c7bcd4645.iix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/f35e1020b6a55c81b6d2fe4c7bcd4645.rix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/f35e1020b6a55c81b6d2fe4c7bcd4645.six +0 -5
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/indices/f35e1020b6a55c81b6d2fe4c7bcd4645.tix +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/pack-names +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/0428489d1a03d05c496c2c429fe96e90.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/30fcaac048e328a7727156986055f6e8.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/673cc297ed321f667e1d8d4fff600829.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/71af8bae249bcb824a4ff17c62029142.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/7202eb77b81a80eca5296f317ed42149.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/8a571ba35ee54cd133b71e967442fe17.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/a06b9c10004fc3e05affee8cf0a9febd.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/da6c79a024c70fd6831e323430a96cc8.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/packs/f35e1020b6a55c81b6d2fe4c7bcd4645.pack +0 -0
- data/test/repositories/bzr_with_nested_branches/.bzr/repository/upload/.gitignore +0 -1
- data/test/repositories/bzr_with_nested_branches/file1.txt +0 -2
- data/test/repositories/bzr_with_nested_branches/file3.txt +0 -1
- data/test/repositories/bzr_with_nested_branches/file4.txt +0 -1
- data/test/repositories/bzr_with_nested_branches/file5.txt +0 -4
- data/test/repositories/bzr_with_nested_branches/file6.txt +0 -2
- data/test/repositories/bzr_with_nested_branches/file7.txt +0 -2
- data/test/repositories/bzr_with_subdirectories/.bzr/README +0 -3
- data/test/repositories/bzr_with_subdirectories/.bzr/branch-format +0 -1
- data/test/repositories/bzr_with_subdirectories/.bzr/branch/branch.conf +0 -0
- data/test/repositories/bzr_with_subdirectories/.bzr/branch/format +0 -1
- data/test/repositories/bzr_with_subdirectories/.bzr/branch/last-revision +0 -1
- data/test/repositories/bzr_with_subdirectories/.bzr/branch/tags +0 -0
- data/test/repositories/bzr_with_subdirectories/.bzr/checkout/conflicts +0 -1
- data/test/repositories/bzr_with_subdirectories/.bzr/checkout/dirstate +0 -0
- data/test/repositories/bzr_with_subdirectories/.bzr/checkout/format +0 -1
- data/test/repositories/bzr_with_subdirectories/.bzr/repository/format +0 -1
- data/test/repositories/bzr_with_subdirectories/.bzr/repository/indices/6eb92b11d9f811881dd08e0ca71e136d.iix +0 -0
- data/test/repositories/bzr_with_subdirectories/.bzr/repository/indices/6eb92b11d9f811881dd08e0ca71e136d.rix +0 -0
- data/test/repositories/bzr_with_subdirectories/.bzr/repository/indices/6eb92b11d9f811881dd08e0ca71e136d.six +0 -5
- data/test/repositories/bzr_with_subdirectories/.bzr/repository/indices/6eb92b11d9f811881dd08e0ca71e136d.tix +0 -0
- data/test/repositories/bzr_with_subdirectories/.bzr/repository/pack-names +0 -0
- data/test/repositories/bzr_with_subdirectories/.bzr/repository/packs/6eb92b11d9f811881dd08e0ca71e136d.pack +0 -0
- data/test/repositories/bzr_with_subdirectories/foo/helloworld.c +0 -0
- data/test/repositories/deep_svn/README.txt +0 -5
- data/test/repositories/deep_svn/conf/authz +0 -21
- data/test/repositories/deep_svn/conf/passwd +0 -8
- data/test/repositories/deep_svn/conf/svnserve.conf +0 -30
- data/test/repositories/deep_svn/db/current +0 -1
- data/test/repositories/deep_svn/db/format +0 -1
- data/test/repositories/deep_svn/db/fs-type +0 -1
- data/test/repositories/deep_svn/db/revprops/0 +0 -5
- data/test/repositories/deep_svn/db/revprops/1 +0 -14
- data/test/repositories/deep_svn/db/revprops/2 +0 -14
- data/test/repositories/deep_svn/db/revprops/3 +0 -14
- data/test/repositories/deep_svn/db/revprops/4 +0 -14
- data/test/repositories/deep_svn/db/revs/0 +0 -11
- data/test/repositories/deep_svn/db/revs/1 +0 -122
- data/test/repositories/deep_svn/db/revs/2 +0 -19
- data/test/repositories/deep_svn/db/revs/3 +0 -44
- data/test/repositories/deep_svn/db/revs/4 +0 -48
- data/test/repositories/deep_svn/db/uuid +0 -1
- data/test/repositories/deep_svn/db/write-lock +0 -0
- data/test/repositories/deep_svn/format +0 -1
- data/test/repositories/deep_svn/hooks/post-commit.tmpl +0 -51
- data/test/repositories/deep_svn/hooks/post-lock.tmpl +0 -44
- data/test/repositories/deep_svn/hooks/post-revprop-change.tmpl +0 -56
- data/test/repositories/deep_svn/hooks/post-unlock.tmpl +0 -42
- data/test/repositories/deep_svn/hooks/pre-commit.tmpl +0 -70
- data/test/repositories/deep_svn/hooks/pre-lock.tmpl +0 -64
- data/test/repositories/deep_svn/hooks/pre-revprop-change.tmpl +0 -66
- data/test/repositories/deep_svn/hooks/pre-unlock.tmpl +0 -60
- data/test/repositories/deep_svn/hooks/start-commit.tmpl +0 -54
- data/test/repositories/deep_svn/locks/db-logs.lock +0 -3
- data/test/repositories/deep_svn/locks/db.lock +0 -3
- data/test/repositories/git_with_empty_merge.tgz +0 -0
- data/test/repositories/svn/README.txt +0 -5
- data/test/repositories/svn/conf/authz +0 -21
- data/test/repositories/svn/conf/passwd +0 -8
- data/test/repositories/svn/conf/svnserve.conf +0 -30
- data/test/repositories/svn/db/current +0 -1
- data/test/repositories/svn/db/format +0 -1
- data/test/repositories/svn/db/fs-type +0 -1
- data/test/repositories/svn/db/revprops/0 +0 -5
- data/test/repositories/svn/db/revprops/1 +0 -14
- data/test/repositories/svn/db/revprops/2 +0 -13
- data/test/repositories/svn/db/revprops/3 +0 -13
- data/test/repositories/svn/db/revprops/4 +0 -13
- data/test/repositories/svn/db/revprops/5 +0 -13
- data/test/repositories/svn/db/revprops/6 +0 -12
- data/test/repositories/svn/db/revs/0 +0 -11
- data/test/repositories/svn/db/revs/1 +0 -0
- data/test/repositories/svn/db/revs/2 +0 -0
- data/test/repositories/svn/db/revs/3 +0 -0
- data/test/repositories/svn/db/revs/4 +0 -0
- data/test/repositories/svn/db/revs/5 +0 -64
- data/test/repositories/svn/db/revs/6 +0 -50
- data/test/repositories/svn/db/uuid +0 -1
- data/test/repositories/svn/db/write-lock +0 -0
- data/test/repositories/svn/format +0 -1
- data/test/repositories/svn/hooks/post-commit.tmpl +0 -51
- data/test/repositories/svn/hooks/post-lock.tmpl +0 -44
- data/test/repositories/svn/hooks/post-revprop-change.tmpl +0 -56
- data/test/repositories/svn/hooks/post-unlock.tmpl +0 -42
- data/test/repositories/svn/hooks/pre-commit.tmpl +0 -70
- data/test/repositories/svn/hooks/pre-lock.tmpl +0 -64
- data/test/repositories/svn/hooks/pre-revprop-change +0 -67
- data/test/repositories/svn/hooks/pre-unlock.tmpl +0 -60
- data/test/repositories/svn/hooks/start-commit.tmpl +0 -54
- data/test/repositories/svn/locks/db-logs.lock +0 -3
- data/test/repositories/svn/locks/db.lock +0 -3
- data/test/repositories/svn_empty/README.txt +0 -5
- data/test/repositories/svn_empty/conf/authz +0 -32
- data/test/repositories/svn_empty/conf/hooks-env.tmpl +0 -19
- data/test/repositories/svn_empty/conf/passwd +0 -8
- data/test/repositories/svn_empty/conf/svnserve.conf +0 -76
- data/test/repositories/svn_empty/db/current +0 -1
- data/test/repositories/svn_empty/db/format +0 -2
- data/test/repositories/svn_empty/db/fs-type +0 -1
- data/test/repositories/svn_empty/db/fsfs.conf +0 -125
- data/test/repositories/svn_empty/db/min-unpacked-rev +0 -1
- data/test/repositories/svn_empty/db/revprops/0/0 +0 -5
- data/test/repositories/svn_empty/db/revs/0/0 +0 -11
- data/test/repositories/svn_empty/db/txn-current +0 -1
- data/test/repositories/svn_empty/db/txn-current-lock +0 -0
- data/test/repositories/svn_empty/db/uuid +0 -1
- data/test/repositories/svn_empty/db/write-lock +0 -0
- data/test/repositories/svn_empty/format +0 -1
- data/test/repositories/svn_empty/hooks/post-commit.tmpl +0 -52
- data/test/repositories/svn_empty/hooks/post-lock.tmpl +0 -45
- data/test/repositories/svn_empty/hooks/post-revprop-change.tmpl +0 -57
- data/test/repositories/svn_empty/hooks/post-unlock.tmpl +0 -43
- data/test/repositories/svn_empty/hooks/pre-commit.tmpl +0 -85
- data/test/repositories/svn_empty/hooks/pre-lock.tmpl +0 -73
- data/test/repositories/svn_empty/hooks/pre-revprop-change.tmpl +0 -66
- data/test/repositories/svn_empty/hooks/pre-unlock.tmpl +0 -65
- data/test/repositories/svn_empty/hooks/start-commit.tmpl +0 -74
- data/test/repositories/svn_empty/locks/db-logs.lock +0 -3
- data/test/repositories/svn_empty/locks/db.lock +0 -3
- data/test/repositories/svn_with_branching.tgz +0 -0
- data/test/repositories/svn_with_invalid_encoding.tgz +0 -0
- data/test/repositories/svn_with_tree_move/README.txt +0 -5
- data/test/repositories/svn_with_tree_move/conf/authz +0 -21
- data/test/repositories/svn_with_tree_move/conf/passwd +0 -8
- data/test/repositories/svn_with_tree_move/conf/svnserve.conf +0 -30
- data/test/repositories/svn_with_tree_move/db/current +0 -1
- data/test/repositories/svn_with_tree_move/db/format +0 -1
- data/test/repositories/svn_with_tree_move/db/fs-type +0 -1
- data/test/repositories/svn_with_tree_move/db/revprops/0 +0 -5
- data/test/repositories/svn_with_tree_move/db/revprops/1 +0 -13
- data/test/repositories/svn_with_tree_move/db/revprops/2 +0 -13
- data/test/repositories/svn_with_tree_move/db/revs/0 +0 -11
- data/test/repositories/svn_with_tree_move/db/revs/1 +0 -0
- data/test/repositories/svn_with_tree_move/db/revs/2 +0 -44
- data/test/repositories/svn_with_tree_move/db/uuid +0 -1
- data/test/repositories/svn_with_tree_move/db/write-lock +0 -0
- data/test/repositories/svn_with_tree_move/format +0 -1
- data/test/repositories/svn_with_tree_move/hooks/post-commit.tmpl +0 -51
- data/test/repositories/svn_with_tree_move/hooks/post-lock.tmpl +0 -44
- data/test/repositories/svn_with_tree_move/hooks/post-revprop-change.tmpl +0 -56
- data/test/repositories/svn_with_tree_move/hooks/post-unlock.tmpl +0 -42
- data/test/repositories/svn_with_tree_move/hooks/pre-commit.tmpl +0 -70
- data/test/repositories/svn_with_tree_move/hooks/pre-lock.tmpl +0 -64
- data/test/repositories/svn_with_tree_move/hooks/pre-revprop-change.tmpl +0 -66
- data/test/repositories/svn_with_tree_move/hooks/pre-unlock.tmpl +0 -60
- data/test/repositories/svn_with_tree_move/hooks/start-commit.tmpl +0 -54
- data/test/repositories/svn_with_tree_move/locks/db-logs.lock +0 -3
- data/test/repositories/svn_with_tree_move/locks/db.lock +0 -3
- data/test/test_helper.rb +0 -127
- data/test/unit/abstract_adapter_test.rb +0 -106
- data/test/unit/adapter_factory_test.rb +0 -67
- data/test/unit/array_writer_test.rb +0 -33
- data/test/unit/bzr_cat_file_test.rb +0 -56
- data/test/unit/bzr_commits_test.rb +0 -388
- data/test/unit/bzr_head_test.rb +0 -18
- data/test/unit/bzr_misc_test.rb +0 -62
- data/test/unit/bzr_parser_test.rb +0 -483
- data/test/unit/bzr_pull_test.rb +0 -31
- data/test/unit/bzr_push_test.rb +0 -61
- data/test/unit/bzr_validation_test.rb +0 -61
- data/test/unit/bzr_xml_parser_test.rb +0 -409
- data/test/unit/bzrlib_cat_file_test.rb +0 -56
- data/test/unit/bzrlib_head_test.rb +0 -18
- data/test/unit/cvs_branch_number_test.rb +0 -130
- data/test/unit/cvs_commits_test.rb +0 -52
- data/test/unit/cvs_convert_test.rb +0 -30
- data/test/unit/cvs_misc_test.rb +0 -82
- data/test/unit/cvs_parser_test.rb +0 -94
- data/test/unit/cvs_validation_test.rb +0 -148
- data/test/unit/git_cat_file_test.rb +0 -21
- data/test/unit/git_commit_all_test.rb +0 -34
- data/test/unit/git_commits_test.rb +0 -179
- data/test/unit/git_head_test.rb +0 -26
- data/test/unit/git_log_parser_test.rb +0 -221
- data/test/unit/git_misc_test.rb +0 -100
- data/test/unit/git_parser_test.rb +0 -59
- data/test/unit/git_patch_test.rb +0 -14
- data/test/unit/git_pull_test.rb +0 -50
- data/test/unit/git_push_test.rb +0 -46
- data/test/unit/git_rev_list_test.rb +0 -89
- data/test/unit/git_styled_parser_test.rb +0 -103
- data/test/unit/git_svn_cat_file_test.rb +0 -57
- data/test/unit/git_svn_commits_test.rb +0 -37
- data/test/unit/git_svn_pull_test.rb +0 -51
- data/test/unit/git_token_test.rb +0 -45
- data/test/unit/git_validation_test.rb +0 -93
- data/test/unit/hg_cat_file_test.rb +0 -47
- data/test/unit/hg_commits_test.rb +0 -220
- data/test/unit/hg_head_test.rb +0 -24
- data/test/unit/hg_misc_test.rb +0 -48
- data/test/unit/hg_parser_test.rb +0 -184
- data/test/unit/hg_patch_test.rb +0 -14
- data/test/unit/hg_pull_test.rb +0 -29
- data/test/unit/hg_push_test.rb +0 -59
- data/test/unit/hg_rev_list_test.rb +0 -63
- data/test/unit/hg_validation_test.rb +0 -60
- data/test/unit/hglib_cat_file_test.rb +0 -47
- data/test/unit/hglib_head_test.rb +0 -18
- data/test/unit/ohlog_command_line_test.rb +0 -36
- data/test/unit/shellout_test.rb +0 -26
- data/test/unit/string_encoder_command_line_test.rb +0 -27
- data/test/unit/svn_cat_file_test.rb +0 -22
- data/test/unit/svn_chain_cat_file_test.rb +0 -24
- data/test/unit/svn_chain_commits_test.rb +0 -176
- data/test/unit/svn_chain_test.rb +0 -77
- data/test/unit/svn_commits_test.rb +0 -275
- data/test/unit/svn_convert_test.rb +0 -28
- data/test/unit/svn_head_test.rb +0 -27
- data/test/unit/svn_misc_test.rb +0 -142
- data/test/unit/svn_parser_test.rb +0 -155
- data/test/unit/svn_patch_test.rb +0 -14
- data/test/unit/svn_pull_test.rb +0 -60
- data/test/unit/svn_push_test.rb +0 -40
- data/test/unit/svn_validation_test.rb +0 -176
- data/test/unit/svn_xml_parser_test.rb +0 -45
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hg::Scm' do
|
4
|
+
it 'must pull hg repository and clean up non .hg files' do
|
5
|
+
with_hg_repository('hg') do |src|
|
6
|
+
tmpdir do |dir|
|
7
|
+
dest = OhlohScm::Factory.get_core(scm_type: :hg, url: dir)
|
8
|
+
dest.status.wont_be :exist?
|
9
|
+
|
10
|
+
dest.scm.pull(src.scm, TestCallback.new)
|
11
|
+
dest.status.must_be :exist?
|
12
|
+
Dir.entries(dir).sort.must_equal ['.', '..', '.hg']
|
13
|
+
|
14
|
+
# Commit some new code on the original and pull again
|
15
|
+
run_p "cd '#{src.scm.url}' && touch foo && hg add foo && hg commit -u test -m test"
|
16
|
+
src.activity.commits.last.message.must_equal "test\n"
|
17
|
+
|
18
|
+
dest.scm.pull(src.scm, TestCallback.new)
|
19
|
+
Dir.entries(dir).sort.must_equal ['.', '..', '.hg']
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hg::Validation' do
|
4
|
+
describe 'validate_server_connection' do
|
5
|
+
it 'must handle non existent remote source' do
|
6
|
+
core = OhlohScm::Factory.get_core(scm_type: :hg, url: 'http://www.selenic.com/repo/foobar')
|
7
|
+
core.validate
|
8
|
+
core.errors.wont_be :empty?
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'validate url' do
|
13
|
+
it 'must have errors for invalid urls' do
|
14
|
+
assert_url_error(:hg, nil, '', 'foo', 'http:/', 'http:://', 'http://', 'http://a')
|
15
|
+
assert_url_error(:hg, 'www.selenic.com/repo/hello') # missing a protool prefix
|
16
|
+
assert_url_error(:hg, 'http://www.selenic.com/repo/hello%20world') # no encoded strings allowed
|
17
|
+
assert_url_error(:hg, 'http://www.selenic.com/repo/hello world') # no spaces allowed
|
18
|
+
assert_url_error(:hg, 'git://www.selenic.com/repo/hello') # git protocol not allowed
|
19
|
+
assert_url_error(:hg, 'svn://www.selenic.com/repo/hello') # svn protocol not allowed
|
20
|
+
assert_url_error(:hg, '/home/robin/hg')
|
21
|
+
assert_url_error(:hg, 'file:///home/robin/hg')
|
22
|
+
assert_url_error(:hg, 'ssh://robin@localhost/home/robin/hg')
|
23
|
+
assert_url_error(:hg, 'ssh://localhost/home/robin/hg')
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'wont have errors for valid urls' do
|
27
|
+
assert_url_valid(:hg, 'http://www.selenic.com/repo/hello')
|
28
|
+
assert_url_valid(:hg, 'http://www.selenic.com:80/repo/hello')
|
29
|
+
assert_url_valid(:hg, 'https://www.selenic.com/repo/hello')
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'ArrayWriter' do
|
4
|
+
it 'must work' do
|
5
|
+
log = <<-LOG.gsub(/^ {6}/, '')
|
6
|
+
__BEGIN_COMMIT__
|
7
|
+
Commit: 1df547800dcd168e589bb9b26b4039bff3a7f7e4
|
8
|
+
Author: Jason Allen
|
9
|
+
AuthorEmail: jason@ohloh.net
|
10
|
+
Date: Fri, 14 Jul 2006 16:07:15 -0700
|
11
|
+
__BEGIN_COMMENT__
|
12
|
+
moving COPYING
|
13
|
+
|
14
|
+
__END_COMMENT__
|
15
|
+
|
16
|
+
:000000 100755 0000000000000000000000000000000000000000 a7b13ff050aed1191c45d7a5db9a50edcdc5755f A COPYING
|
17
|
+
LOG
|
18
|
+
|
19
|
+
commits = OhlohScm::GitParser.parse(log)
|
20
|
+
commits.size.must_equal 1
|
21
|
+
commit = commits.first
|
22
|
+
commit.token.must_equal '1df547800dcd168e589bb9b26b4039bff3a7f7e4'
|
23
|
+
commit.author_name.must_equal 'Jason Allen'
|
24
|
+
commit.author_email.must_equal 'jason@ohloh.net'
|
25
|
+
commit.message.must_equal "moving COPYING\n"
|
26
|
+
commit.author_date.must_equal Time.utc(2006, 7, 14, 23, 7, 15)
|
27
|
+
commit.diffs.size.must_equal 1
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,126 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'BranchNumber' do
|
4
|
+
it 'must test basic' do
|
5
|
+
OhlohScm::BranchNumber.new('1.1').to_a.must_equal [1, 1]
|
6
|
+
OhlohScm::BranchNumber.new('1234.1234').to_a.must_equal [1234, 1234]
|
7
|
+
OhlohScm::BranchNumber.new('1.2.3.4').to_a.must_equal [1, 2, 3, 4]
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'must test simple inherits_from' do
|
11
|
+
b = OhlohScm::BranchNumber.new('1.3')
|
12
|
+
|
13
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.2'))
|
14
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.1'))
|
15
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3'))
|
16
|
+
|
17
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.4'))
|
18
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.1.2.1'))
|
19
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.2.2.1'))
|
20
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.2.1'))
|
21
|
+
end
|
22
|
+
|
23
|
+
it 'must test complex inherits_from' do
|
24
|
+
b = OhlohScm::BranchNumber.new('1.3.6.3.2.3')
|
25
|
+
|
26
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.2'))
|
27
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.1'))
|
28
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3'))
|
29
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.1'))
|
30
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.2'))
|
31
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.3'))
|
32
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.3.2.1'))
|
33
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.3.2.2'))
|
34
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.3.2.3'))
|
35
|
+
|
36
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.4'))
|
37
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.1.2.1'))
|
38
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.2.2.1'))
|
39
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.2.1'))
|
40
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.4.1'))
|
41
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.1.2.1'))
|
42
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.4'))
|
43
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.3.4.1'))
|
44
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.3.2.2.2.1'))
|
45
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.3.6.3.2.4'))
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'must test primary revision number change' do
|
49
|
+
b = OhlohScm::BranchNumber.new('2.3')
|
50
|
+
|
51
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('2.2'))
|
52
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('2.1'))
|
53
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.1'))
|
54
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.9999'))
|
55
|
+
|
56
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('2.4'))
|
57
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('3.1'))
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'must test complex primary revision number change' do
|
61
|
+
b = OhlohScm::BranchNumber.new('2.3.2.1')
|
62
|
+
|
63
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('2.3'))
|
64
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('2.2'))
|
65
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.1'))
|
66
|
+
assert b.send(:inherits_from?, OhlohScm::BranchNumber.new('1.9999'))
|
67
|
+
|
68
|
+
refute b.send(:inherits_from?, OhlohScm::BranchNumber.new('3.1'))
|
69
|
+
end
|
70
|
+
|
71
|
+
it 'must test simple on_same_line' do
|
72
|
+
b = OhlohScm::BranchNumber.new('1.3')
|
73
|
+
|
74
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.2'))
|
75
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.1'))
|
76
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3'))
|
77
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.4'))
|
78
|
+
|
79
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.1.2.1'))
|
80
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.2.2.1'))
|
81
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.3.2.1'))
|
82
|
+
end
|
83
|
+
|
84
|
+
it 'must test complex on_same_line' do
|
85
|
+
b = OhlohScm::BranchNumber.new('1.3.6.3.2.3')
|
86
|
+
|
87
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.1'))
|
88
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.2'))
|
89
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3'))
|
90
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.1'))
|
91
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.2'))
|
92
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3'))
|
93
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3.2.1'))
|
94
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3.2.2'))
|
95
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3.2.3'))
|
96
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3.2.4'))
|
97
|
+
assert b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3.2.99'))
|
98
|
+
|
99
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.4'))
|
100
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.1.2.1'))
|
101
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.2.2.1'))
|
102
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.3.2.1'))
|
103
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.3.4.1'))
|
104
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.1.2.1'))
|
105
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.4'))
|
106
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3.4.1'))
|
107
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3.2.2.2.1'))
|
108
|
+
refute b.on_same_line?(OhlohScm::BranchNumber.new('1.3.6.3.2.99.2.1'))
|
109
|
+
end
|
110
|
+
|
111
|
+
# Crazy CVS inserts a zero before the last piece of a branch number
|
112
|
+
it 'must test magic branch numbers' do
|
113
|
+
assert OhlohScm::BranchNumber.new('1.1.2.1').on_same_line?(OhlohScm::BranchNumber.new('1.1.0.2'))
|
114
|
+
assert OhlohScm::BranchNumber.new('1.1.2.1.2.1').on_same_line?(OhlohScm::BranchNumber.new('1.1.0.2'))
|
115
|
+
|
116
|
+
assert OhlohScm::BranchNumber.new('1.1.0.2').on_same_line?(OhlohScm::BranchNumber.new('1.1'))
|
117
|
+
refute OhlohScm::BranchNumber.new('1.1.0.2').on_same_line?(OhlohScm::BranchNumber.new('1.2'))
|
118
|
+
assert OhlohScm::BranchNumber.new('1.1.0.2').on_same_line?(OhlohScm::BranchNumber.new('1.1.2.1'))
|
119
|
+
|
120
|
+
assert OhlohScm::BranchNumber.new('1.1.0.4').on_same_line?(OhlohScm::BranchNumber.new('1.1'))
|
121
|
+
refute OhlohScm::BranchNumber.new('1.1.0.4').on_same_line?(OhlohScm::BranchNumber.new('1.1.2.1'))
|
122
|
+
refute OhlohScm::BranchNumber.new('1.1.0.4').on_same_line?(OhlohScm::BranchNumber.new('1.1.0.2'))
|
123
|
+
assert OhlohScm::BranchNumber.new('1.1.0.4').on_same_line?(OhlohScm::BranchNumber.new('1.1.4.1'))
|
124
|
+
refute OhlohScm::BranchNumber.new('1.1.0.4').on_same_line?(OhlohScm::BranchNumber.new('1.1.0.6'))
|
125
|
+
end
|
126
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'CvsParser' do
|
4
|
+
describe 'parse' do
|
5
|
+
it 'must return empty array' do
|
6
|
+
OhlohScm::CvsParser.parse('').must_be :empty?
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'must parse the log' do
|
10
|
+
revisions = OhlohScm::CvsParser.parse File.read(FIXTURES_DIR + '/basic.rlog')
|
11
|
+
|
12
|
+
revisions.size.must_equal 2
|
13
|
+
|
14
|
+
revisions[0].token.must_equal '2005/07/25 17:09:59'
|
15
|
+
revisions[0].committer_name.must_equal 'pizzandre'
|
16
|
+
Time.utc(2005, 0o7, 25, 17, 9, 59).must_equal revisions[0].committer_date
|
17
|
+
revisions[0].message.must_equal '*** empty log message ***'
|
18
|
+
|
19
|
+
revisions[1].token.must_equal '2005/07/25 17:11:06'
|
20
|
+
revisions[1].committer_name.must_equal 'pizzandre'
|
21
|
+
Time.utc(2005, 0o7, 25, 17, 11, 6).must_equal revisions[1].committer_date
|
22
|
+
revisions[1].message.must_equal 'Addin UNL file with using example-'
|
23
|
+
end
|
24
|
+
|
25
|
+
# One file with several revisions
|
26
|
+
it 'must test multiple revisions' do
|
27
|
+
revisions = OhlohScm::CvsParser.parse File.read(FIXTURES_DIR + '/multiple_revisions.rlog')
|
28
|
+
|
29
|
+
# There are 9 revisions in the rlog, but some of them are close together with the same message.
|
30
|
+
# Therefore we bin them together into only 7 revisions.
|
31
|
+
revisions.size.must_equal 7
|
32
|
+
|
33
|
+
revisions[0].token.must_equal '2005/07/15 11:53:30'
|
34
|
+
revisions[0].committer_name.must_equal 'httpd'
|
35
|
+
revisions[0].message.must_equal 'Initial data for the intelliglue project'
|
36
|
+
|
37
|
+
revisions[1].token.must_equal '2005/07/15 16:40:17'
|
38
|
+
revisions[1].committer_name.must_equal 'pizzandre'
|
39
|
+
revisions[1].message.must_equal '*** empty log message ***'
|
40
|
+
|
41
|
+
revisions[5].token.must_equal '2005/07/26 20:35:13'
|
42
|
+
revisions[5].committer_name.must_equal 'pizzandre'
|
43
|
+
assert_equal "Issue number:\nObtained from:\nSubmitted by:\nReviewed by:\nAdding current milestones-",
|
44
|
+
revisions[5].message
|
45
|
+
|
46
|
+
revisions[6].token.must_equal '2005/07/26 20:39:16'
|
47
|
+
revisions[6].committer_name.must_equal 'pizzandre'
|
48
|
+
assert_equal "Issue number:\nObtained from:\nSubmitted by:\nReviewed by:\nCompleting and fixing milestones texts",
|
49
|
+
revisions[6].message
|
50
|
+
end
|
51
|
+
|
52
|
+
# A file is created and modified on the branch, then merged to the trunk, then deleted from the branch.
|
53
|
+
# From the trunk's point of view, we should see only the merge event.
|
54
|
+
it 'must test file created on branch as seen from trunk' do
|
55
|
+
revisions = OhlohScm::CvsParser.parse File.read(FIXTURES_DIR + '/file_created_on_branch.rlog')
|
56
|
+
revisions.size.must_equal 1
|
57
|
+
revisions[0].message.must_equal 'merged new_file.rb from branch onto the HEAD'
|
58
|
+
end
|
59
|
+
|
60
|
+
# A file is created on the vender branch. This causes a simultaneous checkin on HEAD
|
61
|
+
# with a different message ('Initial revision') but same committer_name name and timestamp.
|
62
|
+
# We should only pick up one of these checkins.
|
63
|
+
it 'must test simultaneous checkins' do
|
64
|
+
revisions = OhlohScm::CvsParser.parse File.read(FIXTURES_DIR + '/simultaneous_checkins.rlog')
|
65
|
+
revisions.size.must_equal 1
|
66
|
+
revisions[0].message.must_equal 'Initial revision'
|
67
|
+
end
|
68
|
+
|
69
|
+
# Two different authors check in with two different messages at the exact same moment.
|
70
|
+
# How this happens is a mystery, but I have seen it in rlogs.
|
71
|
+
# We arbitrarily choose the first one if so.
|
72
|
+
it 'must test simultaneous checkins_2' do
|
73
|
+
revisions = OhlohScm::CvsParser.parse File.read(FIXTURES_DIR + '/simultaneous_checkins_2.rlog')
|
74
|
+
revisions.size.must_equal 1
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,102 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'GitParser' do
|
4
|
+
describe 'parse' do
|
5
|
+
it 'must be empty for blank string' do
|
6
|
+
OhlohScm::GitParser.parse('').must_be :empty?
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'must return epoch time for log with no date' do
|
10
|
+
# rubocop:disable Layout/TrailingWhitespace
|
11
|
+
sample_log = <<-SAMPLE.gsub(/^ {8}/, '')
|
12
|
+
__BEGIN_COMMIT__
|
13
|
+
Commit: 1df547800dcd168e589bb9b26b4039bff3a7f7e4
|
14
|
+
Author: Jason Allen
|
15
|
+
AuthorEmail: jason@ohloh.net
|
16
|
+
Date:
|
17
|
+
__BEGIN_COMMENT__
|
18
|
+
moving COPYING
|
19
|
+
|
20
|
+
__END_COMMENT__
|
21
|
+
SAMPLE
|
22
|
+
# rubocop:enable Layout/TrailingWhitespace
|
23
|
+
|
24
|
+
commits = OhlohScm::GitParser.parse(sample_log)
|
25
|
+
commits.size.must_equal 1
|
26
|
+
commits[0].author_date.must_equal Time.utc(1970, 1, 1, 0, 0, 0)
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'must return epoch time for log with invalid date' do
|
30
|
+
sample_log = <<-SAMPLE.gsub(/^ {8}/, '')
|
31
|
+
__BEGIN_COMMIT__
|
32
|
+
Commit: 1df547800dcd168e589bb9b26b4039bff3a7f7e4
|
33
|
+
Author: Jason Allen
|
34
|
+
AuthorEmail: jason@ohloh.net
|
35
|
+
Date: Mon, Jan 01 2012 05:00:00 -0500
|
36
|
+
__BEGIN_COMMENT__
|
37
|
+
moving COPYING
|
38
|
+
|
39
|
+
__END_COMMENT__
|
40
|
+
SAMPLE
|
41
|
+
|
42
|
+
commits = OhlohScm::GitParser.parse(sample_log)
|
43
|
+
commits.size.must_equal 1
|
44
|
+
commits[0].author_date.must_equal Time.utc(1970, 1, 1, 0, 0, 0)
|
45
|
+
end
|
46
|
+
|
47
|
+
it 'must parse a log correctly' do
|
48
|
+
sample_log = <<-SAMPLE.gsub(/^ {8}/, '')
|
49
|
+
__BEGIN_COMMIT__
|
50
|
+
Commit: 1df547800dcd168e589bb9b26b4039bff3a7f7e4
|
51
|
+
Author: Jason Allen
|
52
|
+
AuthorEmail: jason@ohloh.net
|
53
|
+
Date: Fri, 14 Jul 2006 16:07:15 -0700
|
54
|
+
__BEGIN_COMMENT__
|
55
|
+
moving COPYING
|
56
|
+
|
57
|
+
__END_COMMENT__
|
58
|
+
|
59
|
+
:000000 100755 0000000000000000000000000000000000000000 a7b13ff050aed1191c45d7a5db9a50edcdc5755f A COPYING
|
60
|
+
|
61
|
+
__BEGIN_COMMIT__
|
62
|
+
Commit: 2e9366dd7a786fdb35f211fff1c8ea05c51968b1
|
63
|
+
Author: Robin Luckey
|
64
|
+
AuthorEmail: robin@ohloh.net
|
65
|
+
Date: Sun, 11 Jun 2006 11:34:17 -0700
|
66
|
+
__BEGIN_COMMENT__
|
67
|
+
added some documentation and licensing info
|
68
|
+
|
69
|
+
__END_COMMENT__
|
70
|
+
|
71
|
+
:100644 100644 d4a46caf1891fccebb726504f34794a0ca5d2e42 41dc0d12cb9eaa30e57aa7126b1227ba320ad297 M README
|
72
|
+
:100644 000000 41dc0d12cb9eaa30e57aa7126b1227ba320ad297 0000000000000000000000000000000000000000 D helloworld.c
|
73
|
+
SAMPLE
|
74
|
+
|
75
|
+
commits = OhlohScm::GitParser.parse(sample_log)
|
76
|
+
|
77
|
+
commits.size.must_equal 2
|
78
|
+
|
79
|
+
commits[0].token.must_equal '1df547800dcd168e589bb9b26b4039bff3a7f7e4'
|
80
|
+
commits[0].author_name.must_equal 'Jason Allen'
|
81
|
+
commits[0].author_email.must_equal 'jason@ohloh.net'
|
82
|
+
commits[0].message.must_equal "moving COPYING\n"
|
83
|
+
commits[0].author_date.must_equal Time.utc(2006, 7, 14, 23, 7, 15)
|
84
|
+
commits[0].diffs.size.must_equal 1
|
85
|
+
|
86
|
+
commits[0].diffs[0].action.must_equal 'A'
|
87
|
+
commits[0].diffs[0].path.must_equal 'COPYING'
|
88
|
+
|
89
|
+
commits[1].token.must_equal '2e9366dd7a786fdb35f211fff1c8ea05c51968b1'
|
90
|
+
commits[1].author_name.must_equal 'Robin Luckey'
|
91
|
+
commits[1].author_email.must_equal 'robin@ohloh.net'
|
92
|
+
commits[1].message.must_equal "added some documentation and licensing info\n"
|
93
|
+
commits[1].author_date.must_equal Time.utc(2006, 6, 11, 18, 34, 17)
|
94
|
+
commits[1].diffs.size.must_equal 2
|
95
|
+
|
96
|
+
commits[1].diffs[0].action.must_equal 'M'
|
97
|
+
commits[1].diffs[0].path.must_equal 'README'
|
98
|
+
commits[1].diffs[1].action.must_equal 'D'
|
99
|
+
commits[1].diffs[1].path.must_equal 'helloworld.c'
|
100
|
+
end
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,194 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'HgParser' do
|
4
|
+
describe 'parser' do
|
5
|
+
it 'must return an empty list for blank log' do
|
6
|
+
OhlohScm::HgParser.parse('').must_be :empty?
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'must parse log into commits' do
|
10
|
+
sample_log = <<-SAMPLE.gsub(/^ {8}/, '')
|
11
|
+
__BEGIN_COMMIT__
|
12
|
+
changeset: 655f04cf6ad708ab58c7b941672dce09dd369a18
|
13
|
+
user: Alex <alex@example.com>
|
14
|
+
date: 1232479997.028800
|
15
|
+
__BEGIN_COMMENT__
|
16
|
+
added makefile
|
17
|
+
__END_COMMENT__
|
18
|
+
__END_COMMIT__
|
19
|
+
__BEGIN_COMMIT__
|
20
|
+
changeset: 01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
21
|
+
user: Robin Luckey <robin@ohloh.net>
|
22
|
+
date: 1232479974.028800
|
23
|
+
__BEGIN_COMMENT__
|
24
|
+
Initial Checkin
|
25
|
+
__END_COMMENT__
|
26
|
+
__END_COMMIT__
|
27
|
+
|
28
|
+
SAMPLE
|
29
|
+
|
30
|
+
commits = OhlohScm::HgParser.parse(sample_log)
|
31
|
+
|
32
|
+
assert commits
|
33
|
+
commits.size.must_equal 2
|
34
|
+
|
35
|
+
commits[0].token.must_match '655f04cf6ad708'
|
36
|
+
commits[0].committer_name.must_equal 'Alex'
|
37
|
+
commits[0].committer_email.must_equal 'alex@example.com'
|
38
|
+
commits[0].message.must_equal "added makefile\n" # Note \n at end of comment
|
39
|
+
commits[0].committer_date.to_i.must_equal Time.utc(2009, 1, 20, 19, 33, 17).to_i
|
40
|
+
commits[0].diffs.size.must_equal 0
|
41
|
+
|
42
|
+
commits[1].token.must_match '01101d8ef3ce'
|
43
|
+
commits[1].committer_name.must_equal 'Robin Luckey'
|
44
|
+
commits[1].committer_email.must_equal 'robin@ohloh.net'
|
45
|
+
commits[1].message.must_equal "Initial Checkin\n" # Note \n at end of comment
|
46
|
+
commits[1].committer_date.to_i.must_equal Time.utc(2009, 1, 20, 19, 32, 54).to_i
|
47
|
+
commits[1].diffs.size.must_equal 0
|
48
|
+
end
|
49
|
+
|
50
|
+
it 'must set committer_name to email and committer_email to NULL when name is not present' do
|
51
|
+
sample_log = <<-SAMPLE.gsub(/^ {8}/, '')
|
52
|
+
__BEGIN_COMMIT__
|
53
|
+
changeset: 01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
54
|
+
user: robin@ohloh.net
|
55
|
+
date: 1232479974.028800
|
56
|
+
__BEGIN_COMMENT__
|
57
|
+
Initial Checkin
|
58
|
+
__END_COMMENT__
|
59
|
+
__END_COMMIT__
|
60
|
+
SAMPLE
|
61
|
+
|
62
|
+
commits = OhlohScm::HgParser.parse(sample_log)
|
63
|
+
|
64
|
+
assert commits
|
65
|
+
commits.size.must_equal 1
|
66
|
+
|
67
|
+
commits[0].token.must_match '01101d8ef3ce'
|
68
|
+
commits[0].committer_name.must_equal 'robin@ohloh.net'
|
69
|
+
commits[0].committer_email.must_be_nil
|
70
|
+
end
|
71
|
+
|
72
|
+
# Sometimes the log does not include a summary
|
73
|
+
it 'must parse log with no summary' do
|
74
|
+
sample_log = <<-SAMPLE.gsub(/^ {8}/, '')
|
75
|
+
__BEGIN_COMMIT__
|
76
|
+
changeset: 655f04cf6ad708ab58c7b941672dce09dd369a18
|
77
|
+
user: Alex <alex@example.com>
|
78
|
+
date: 1232479997.028800
|
79
|
+
__END_COMMIT__
|
80
|
+
__BEGIN_COMMIT__
|
81
|
+
changeset: 01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
82
|
+
user: Robin Luckey <robin@ohloh.net>
|
83
|
+
date: 1232479974.028800
|
84
|
+
__END_COMMIT__
|
85
|
+
SAMPLE
|
86
|
+
commits = OhlohScm::HgParser.parse(sample_log)
|
87
|
+
|
88
|
+
assert commits
|
89
|
+
commits.size.must_equal 2
|
90
|
+
|
91
|
+
commits[0].token.must_match '655f04cf6ad708'
|
92
|
+
commits[0].committer_name.must_equal 'Alex'
|
93
|
+
commits[0].committer_email.must_equal 'alex@example.com'
|
94
|
+
commits[0].message.must_be_nil
|
95
|
+
commits[0].committer_date.to_i.must_equal Time.utc(2009, 1, 20, 19, 33, 17).to_i
|
96
|
+
commits[0].diffs.size.must_equal 0
|
97
|
+
end
|
98
|
+
|
99
|
+
it 'must parse verbose log into commits and diffs' do
|
100
|
+
sample_log = <<-SAMPLE.gsub(/^ {8}/, '')
|
101
|
+
__BEGIN_COMMIT__
|
102
|
+
changeset: 655f04cf6ad708ab58c7b941672dce09dd369a18
|
103
|
+
user: Alex <alex@example.com>
|
104
|
+
date: 1232479997.028800
|
105
|
+
__BEGIN_COMMENT__
|
106
|
+
Adding file foobar
|
107
|
+
__END_COMMENT__
|
108
|
+
__BEGIN_FILES__
|
109
|
+
A foobar
|
110
|
+
__END_FILES__
|
111
|
+
__END_COMMIT__
|
112
|
+
|
113
|
+
__BEGIN_COMMIT__
|
114
|
+
changeset: 01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
115
|
+
user: Robin Luckey <robin@ohloh.net>
|
116
|
+
date: 1232479974.028800
|
117
|
+
__BEGIN_COMMENT__
|
118
|
+
Initial Checkin
|
119
|
+
__END_COMMENT__
|
120
|
+
__BEGIN_FILES__
|
121
|
+
A helloworld.c
|
122
|
+
__END_FILES__
|
123
|
+
__END_COMMIT__
|
124
|
+
SAMPLE
|
125
|
+
|
126
|
+
commits = OhlohScm::HgParser.parse(sample_log)
|
127
|
+
|
128
|
+
assert commits
|
129
|
+
commits.size.must_equal 2
|
130
|
+
|
131
|
+
commits[0].token.must_match '655f04cf6ad708'
|
132
|
+
commits[0].committer_name.must_equal 'Alex'
|
133
|
+
commits[0].committer_email.must_equal 'alex@example.com'
|
134
|
+
commits[0].message.must_equal "Adding file foobar\n" # Note \n at end of comment
|
135
|
+
commits[0].committer_date.to_i.must_equal Time.utc(2009, 1, 20, 19, 33, 17).to_i
|
136
|
+
commits[0].diffs[0].path.must_equal 'foobar'
|
137
|
+
|
138
|
+
commits[1].token.must_match '01101d8ef3ce'
|
139
|
+
commits[1].committer_name.must_equal 'Robin Luckey'
|
140
|
+
commits[1].committer_email.must_equal 'robin@ohloh.net'
|
141
|
+
commits[1].message.must_equal "Initial Checkin\n" # Note \n at end of comment
|
142
|
+
commits[1].committer_date.to_i.must_equal Time.utc(2009, 1, 20, 19, 32, 54).to_i
|
143
|
+
commits[1].diffs.size.must_equal 1
|
144
|
+
commits[1].diffs[0].path.must_equal 'helloworld.c'
|
145
|
+
end
|
146
|
+
|
147
|
+
it 'must parse log with the --style argument' do
|
148
|
+
with_hg_repository('hg') do |hg|
|
149
|
+
assert File.exist?(OhlohScm::HgParser.style_path)
|
150
|
+
log = run_p("cd #{hg.scm.url} && hg log -f --style #{OhlohScm::HgParser.style_path}")
|
151
|
+
commits = OhlohScm::HgParser.parse(log)
|
152
|
+
assert_styled_commits(commits, false)
|
153
|
+
|
154
|
+
assert File.exist?(OhlohScm::HgParser.verbose_style_path)
|
155
|
+
log = run_p("cd #{hg.scm.url} && hg log -f --style #{OhlohScm::HgParser.verbose_style_path}")
|
156
|
+
commits = OhlohScm::HgParser.parse(log)
|
157
|
+
assert_styled_commits(commits, true)
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
protected
|
162
|
+
|
163
|
+
def assert_styled_commits(commits, with_diffs = false)
|
164
|
+
commits.size.must_equal 5
|
165
|
+
|
166
|
+
commits[1].token.must_equal '75532c1e1f1de55c2271f6fd29d98efbe35397c4'
|
167
|
+
commits[1].committer_name.must_equal 'Robin Luckey'
|
168
|
+
commits[1].committer_email.must_equal 'robin@ohloh.net'
|
169
|
+
assert Time.utc(2009, 1, 20, 19, 34, 53) - commits[1].committer_date < 1 # Don't care about milliseconds
|
170
|
+
commits[1].message.must_equal "deleted helloworld.c\n"
|
171
|
+
|
172
|
+
if with_diffs
|
173
|
+
commits[1].diffs.size.must_equal 1
|
174
|
+
commits[1].diffs[0].action.must_equal 'D'
|
175
|
+
commits[1].diffs[0].path.must_equal 'helloworld.c'
|
176
|
+
else
|
177
|
+
commits[1].diffs.must_equal []
|
178
|
+
end
|
179
|
+
|
180
|
+
commits[2].token.must_equal '468336c6671cbc58237a259d1b7326866afc2817'
|
181
|
+
assert Time.utc(2009, 1, 20, 19, 34, 4) - commits[2].committer_date < 1
|
182
|
+
|
183
|
+
if with_diffs
|
184
|
+
commits[2].diffs.size.must_equal 2
|
185
|
+
commits[2].diffs[0].action.must_equal 'M'
|
186
|
+
commits[2].diffs[0].path.must_equal 'helloworld.c'
|
187
|
+
commits[2].diffs[1].action.must_equal 'A'
|
188
|
+
commits[2].diffs[1].path.must_equal 'README'
|
189
|
+
else
|
190
|
+
commits[0].diffs.must_equal []
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|