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,57 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Git::Scm' do
|
4
|
+
it 'must pull git repository' do
|
5
|
+
with_git_repository('git') do |src_core|
|
6
|
+
tmpdir do |dest_dir|
|
7
|
+
core = OhlohScm::Factory.get_core(scm_type: :git, url: dest_dir)
|
8
|
+
refute core.status.exist?
|
9
|
+
|
10
|
+
core.scm.pull(src_core.scm, TestCallback.new)
|
11
|
+
assert core.status.exist?
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'must pull git repository with multiple branches' do
|
17
|
+
# This should not change current/default branch(e.g. master) to point to the branch commit being pulled
|
18
|
+
# In this case master should not point to test branch commit
|
19
|
+
with_git_repository('git_with_multiple_branch', 'test') do |src_core|
|
20
|
+
tmpdir do |dest_dir|
|
21
|
+
core = OhlohScm::Factory.get_core(scm_type: :git, url: dest_dir, branch_name: 'test')
|
22
|
+
refute core.status.exist?
|
23
|
+
core.scm.pull(src_core.scm, TestCallback.new)
|
24
|
+
|
25
|
+
remote_master_branch_sha = `cd #{dest_dir} && git rev-parse origin/master`
|
26
|
+
master_branch_sha = `cd #{dest_dir} && git rev-parse master`
|
27
|
+
test_branch_sha = `cd #{dest_dir} && git rev-parse test`
|
28
|
+
|
29
|
+
master_branch_sha.wont_equal test_branch_sha
|
30
|
+
master_branch_sha.must_equal remote_master_branch_sha
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'must test the basic conversion to git' do
|
36
|
+
with_cvs_repository('cvs', 'simple') do |src_core|
|
37
|
+
tmpdir do |dest_dir|
|
38
|
+
core = OhlohScm::Factory.get_core(scm_type: :git, url: dest_dir)
|
39
|
+
refute core.status.exist?
|
40
|
+
core.scm.pull(src_core.scm, TestCallback.new)
|
41
|
+
assert core.status.exist?
|
42
|
+
|
43
|
+
dest_commits = core.activity.commits
|
44
|
+
src_core.activity.commits.each_with_index do |c, i|
|
45
|
+
# Because CVS does not track authors (only committers),
|
46
|
+
# the CVS committer becomes the Git author.
|
47
|
+
c.committer_date.must_equal dest_commits[i].author_date
|
48
|
+
c.committer_name.must_equal dest_commits[i].author_name
|
49
|
+
|
50
|
+
# Depending upon version of Git used, we may or may not have a trailing \n.
|
51
|
+
# We don't really care, so just compare the stripped versions.
|
52
|
+
c.message.strip.must_equal dest_commits[i].message.strip
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Git::Status' do
|
4
|
+
it 'branch?' do
|
5
|
+
with_git_repository('git') do |git|
|
6
|
+
git.activity.send(:branches).must_equal %w[develop master]
|
7
|
+
assert git.status.branch? # checks master.
|
8
|
+
assert git.status.branch?('develop')
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Git::Validation' do
|
4
|
+
it 'must handle non existent remote source' do
|
5
|
+
core = OhlohScm::Factory.get_core(scm_type: :git, url: 'https://github.com/Person/foobar')
|
6
|
+
core.validate
|
7
|
+
core.errors.wont_be :empty?
|
8
|
+
end
|
9
|
+
|
10
|
+
it 'wont have errors for valid url' do
|
11
|
+
core = OhlohScm::Factory.get_core(scm_type: :git, url: 'https://github.com/ruby/ruby')
|
12
|
+
core.validation.send(:validate_attributes)
|
13
|
+
core.errors.must_be :empty?
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'must have errors for invalid branch_name' do
|
17
|
+
get_core(:git, branch_name: 'x' * 81).validation.send(:branch_name_errors).wont_be :empty?
|
18
|
+
get_core(:git, branch_name: 'foo@bar').validation.send(:branch_name_errors).wont_be :empty?
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'must have errors for invalid username' do
|
22
|
+
get_core(:git, username: 'x' * 33).validation.send(:username_errors).wont_be :empty?
|
23
|
+
get_core(:git, username: 'foo@bar').validation.send(:username_errors).wont_be :empty?
|
24
|
+
end
|
25
|
+
|
26
|
+
it 'must have errors for invalid password' do
|
27
|
+
get_core(:git, password: 'x' * 33).validation.send(:password_errors).wont_be :empty?
|
28
|
+
get_core(:git, password: 'escape').validation.send(:password_errors).wont_be :empty?
|
29
|
+
end
|
30
|
+
|
31
|
+
describe 'validate url' do
|
32
|
+
it 'must have errors for invalid urls' do
|
33
|
+
assert_url_error(:git, nil, '', 'foo', 'http:/', 'http:://', 'http://', 'http://a')
|
34
|
+
assert_url_error(:git, 'kernel.org/linux/linux.git') # missing a protocol prefix
|
35
|
+
assert_url_error(:git, 'http://kernel.org/linux/lin%32ux.git') # no encoded strings allowed
|
36
|
+
assert_url_error(:git, 'http://kernel.org/linux/linux.git malicious code') # no spaces allowed
|
37
|
+
assert_url_error(:git, 'svn://svn.mythtv.org/svn/trunk') # svn protocol is not allowed
|
38
|
+
assert_url_error(:git, '/home/robin/cvs') # local file paths not allowed
|
39
|
+
assert_url_error(:git, 'file:///home/robin/cvs') # file protocol is not allowed
|
40
|
+
# pserver is just wrong
|
41
|
+
assert_url_error(:git, ':pserver:anonymous:@juicereceiver.cvs.sourceforge.net:/cvsroot/juicereceiver')
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'wont have errors for valid urls' do
|
45
|
+
assert_url_valid(:git, 'http://kernel.org/pub/scm/git/git.git')
|
46
|
+
assert_url_valid(:git, 'git://kernel.org/pub/scm/git/git.git')
|
47
|
+
assert_url_valid(:git, 'https://kernel.org/pub/scm/git/git.git')
|
48
|
+
assert_url_valid(:git, 'https://kernel.org:8080/pub/scm/git/git.git')
|
49
|
+
assert_url_valid(:git, 'git://kernel.org/~foo/git.git')
|
50
|
+
assert_url_valid(:git, 'http://git.onerussian.com/pub/deb/impose+.git')
|
51
|
+
assert_url_valid(:git, 'https://Person@github.com/Person/some_repo.git')
|
52
|
+
assert_url_valid(:git, 'http://Person@github.com/Person/some_repo.git')
|
53
|
+
assert_url_valid(:git, 'https://github.com/Person/some_repo')
|
54
|
+
assert_url_valid(:git, 'http://github.com/Person/some_repo')
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
@@ -0,0 +1,89 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'mocha'
|
3
|
+
|
4
|
+
describe 'GitSvn::Activity' do
|
5
|
+
it 'must return all commit tokens' do
|
6
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
7
|
+
git_svn.activity.commit_tokens.must_equal [1, 2, 3, 5]
|
8
|
+
git_svn.activity.commit_tokens(after: 2).must_equal [3, 5]
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'must return commits' do
|
13
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
14
|
+
git_svn.activity.commits.map(&:token).must_equal [1, 2, 3, 5]
|
15
|
+
git_svn.activity.commits(after: 2).map(&:token).must_equal [3, 5]
|
16
|
+
git_svn.activity.commits(after: 7).map(&:token).must_equal []
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
it 'must iterate each commit' do
|
21
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
22
|
+
commits = []
|
23
|
+
git_svn.activity.each_commit { |c| commits << c }
|
24
|
+
git_svn.activity.commits.map(&:token).must_equal [1, 2, 3, 5]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
it 'must return total commit count' do
|
29
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
30
|
+
git_svn.activity.commit_count.must_equal 4
|
31
|
+
git_svn.activity.commit_count(after: 2).must_equal 2
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
describe 'cat' do
|
36
|
+
let(:commit_1) { OhlohScm::Commit.new(token: 1) }
|
37
|
+
let(:hello_diff) { OhlohScm::Diff.new(path: 'helloworld.c') }
|
38
|
+
|
39
|
+
it 'cat_file' do
|
40
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
41
|
+
expected = <<-EXPECTED.gsub(/^\s+/, '')
|
42
|
+
/* Hello, World! */
|
43
|
+
#include <stdio.h>
|
44
|
+
main()
|
45
|
+
{
|
46
|
+
printf("Hello, World!\\n");
|
47
|
+
}
|
48
|
+
EXPECTED
|
49
|
+
|
50
|
+
git_svn.activity.cat_file(commit_1, hello_diff)
|
51
|
+
.delete("\t").strip.must_equal expected.strip
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
it 'cat_file_with_non_existent_token' do
|
56
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
57
|
+
assert git_svn.activity.cat_file(OhlohScm::Commit.new(token: 999), hello_diff)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
it 'cat_file_with_invalid_filename' do
|
62
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
63
|
+
-> { git_svn.activity.cat_file(commit_1, OhlohScm::Diff.new(path: 'invalid')) }.must_raise(RuntimeError)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
it 'cat_file_parent' do
|
68
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
69
|
+
expected = <<-EXPECTED.gsub(/^\s+/, '')
|
70
|
+
/* Hello, World! */
|
71
|
+
#include <stdio.h>
|
72
|
+
main()
|
73
|
+
{
|
74
|
+
printf("Hello, World!\\n");
|
75
|
+
}
|
76
|
+
EXPECTED
|
77
|
+
|
78
|
+
commit = OhlohScm::Commit.new(token: 2)
|
79
|
+
git_svn.activity.cat_file_parent(commit, hello_diff).delete("\t").must_equal expected.strip
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
it 'cat_file_parent_with_first_token' do
|
84
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
85
|
+
assert git_svn.activity.cat_file(commit_1, hello_diff)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'GitSvn::Scm' do
|
4
|
+
it 'must convert to git Repository' do
|
5
|
+
with_svn_repository('svn') do |src|
|
6
|
+
tmpdir do |local_dir|
|
7
|
+
git_svn = get_core(:git_svn, url: local_dir)
|
8
|
+
git_svn.scm.pull(src.scm, TestCallback.new)
|
9
|
+
assert git_svn.status.exist?
|
10
|
+
|
11
|
+
git_svn.activity.commit_count.must_equal 5
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'must fetch the repo' do
|
17
|
+
OhlohScm::GitSvn::Scm.any_instance.expects(:run).times(3)
|
18
|
+
with_git_svn_repository('git_svn') do |git_svn|
|
19
|
+
git_svn.scm.pull(git_svn.scm, TestCallback.new)
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,323 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe 'Hg::Activity' do
|
4
|
+
it 'must fetch tags' do
|
5
|
+
with_hg_repository('hg') do |hg|
|
6
|
+
time = Time.parse('Fri Jul 22 18:00:18 2016 +0530')
|
7
|
+
hg.activity.tags.first.must_equal ['tip', '5', time]
|
8
|
+
hg.activity.tags.last.first(2).must_equal ['tagname with space', '2']
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
it 'must export repo data' do
|
13
|
+
with_hg_repository('hg') do |hg|
|
14
|
+
Dir.mktmpdir do |dir|
|
15
|
+
hg.activity.export(dir)
|
16
|
+
Dir.entries(dir).sort.must_equal ['.', '..', 'README', 'makefile', 'two']
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
describe 'commits' do
|
22
|
+
it 'commit_count' do
|
23
|
+
with_hg_repository('hg') do |hg|
|
24
|
+
hg.activity.commit_count.must_equal 5
|
25
|
+
hg.activity.commit_count(after: 'b14fa4692f949940bd1e28da6fb4617de2615484').must_equal 3
|
26
|
+
hg.activity.commit_count(after: '655f04cf6ad708ab58c7b941672dce09dd369a18').must_equal 0
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
it 'commit_count_with_empty_branch' do
|
31
|
+
with_hg_repository('hg', '') do |hg|
|
32
|
+
hg.scm.branch_name.must_be_nil
|
33
|
+
hg.activity.commit_count.must_equal 5
|
34
|
+
hg.activity.commit_count(after: 'b14fa4692f949940bd1e28da6fb4617de2615484').must_equal 3
|
35
|
+
hg.activity.commit_count(after: '655f04cf6ad708ab58c7b941672dce09dd369a18').must_equal 0
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'commits' do
|
40
|
+
with_hg_repository('hg') do |hg|
|
41
|
+
hg.activity.commits.map(&:token).must_equal(%w[01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
42
|
+
b14fa4692f949940bd1e28da6fb4617de2615484
|
43
|
+
468336c6671cbc58237a259d1b7326866afc2817
|
44
|
+
75532c1e1f1de55c2271f6fd29d98efbe35397c4
|
45
|
+
655f04cf6ad708ab58c7b941672dce09dd369a18])
|
46
|
+
|
47
|
+
after = '75532c1e1f1de55c2271f6fd29d98efbe35397c4'
|
48
|
+
hg.activity.commits(after: after).map(&:token).must_equal ['655f04cf6ad708ab58c7b941672dce09dd369a18']
|
49
|
+
|
50
|
+
# Check that the diffs are not populated
|
51
|
+
hg.activity.commits(after: '75532c1e1f1de55c2271f6fd29d98efbe35397c4').first.diffs.must_be :empty?
|
52
|
+
|
53
|
+
hg.activity.commits(after: '655f04cf6ad708ab58c7b941672dce09dd369a18').must_be :empty?
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
it 'commits_with_branch' do
|
58
|
+
with_hg_repository('hg', 'develop') do |hg|
|
59
|
+
hg.activity.commits.map(&:token).must_equal(%w[01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
60
|
+
b14fa4692f949940bd1e28da6fb4617de2615484
|
61
|
+
468336c6671cbc58237a259d1b7326866afc2817
|
62
|
+
75532c1e1f1de55c2271f6fd29d98efbe35397c4
|
63
|
+
4d54c3f0526a1ec89214a70615a6b1c6129c665c])
|
64
|
+
|
65
|
+
after = '75532c1e1f1de55c2271f6fd29d98efbe35397c4'
|
66
|
+
hg.activity.commits(after: after).map(&:token).must_equal(['4d54c3f0526a1ec89214a70615a6b1c6129c665c'])
|
67
|
+
|
68
|
+
# Check that the diffs are not populated
|
69
|
+
hg.activity.commits(after: '75532c1e1f1de55c2271f6fd29d98efbe35397c4').first.diffs.must_be :empty?
|
70
|
+
|
71
|
+
hg.activity.commits(after: '4d54c3f0526a1ec89214a70615a6b1c6129c665c').must_be :empty?
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
it 'trunk_only_commit_count' do
|
76
|
+
with_hg_repository('hg_dupe_delete') do |hg|
|
77
|
+
hg.activity.commit_count(trunk_only: false).must_equal 4
|
78
|
+
hg.activity.commit_count(trunk_only: true).must_equal 3
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'trunk_only_commits' do
|
83
|
+
with_hg_repository('hg_dupe_delete') do |hg|
|
84
|
+
hg.activity.commits(trunk_only: true)
|
85
|
+
.map(&:token).must_equal(['73e93f57224e3fd828cf014644db8eec5013cd6b',
|
86
|
+
'732345b1d5f4076498132fd4b965b1fec0108a50',
|
87
|
+
# '525de321d8085bc1d4a3c7608fda6b4020027985', # branch
|
88
|
+
'72fe74d643bdcb30b00da3b58796c50f221017d0'])
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
it 'each_commit' do
|
93
|
+
commits = []
|
94
|
+
with_hg_repository('hg') do |hg|
|
95
|
+
hg.activity.each_commit do |c|
|
96
|
+
assert c.token.length == 40
|
97
|
+
assert c.committer_name
|
98
|
+
assert c.committer_date.is_a?(Time)
|
99
|
+
refute c.message.empty?
|
100
|
+
assert c.diffs.any?
|
101
|
+
# Check that the diffs are populated
|
102
|
+
c.diffs.each do |d|
|
103
|
+
assert d.action =~ /^[MAD]$/
|
104
|
+
refute d.path.empty?
|
105
|
+
end
|
106
|
+
commits << c
|
107
|
+
end
|
108
|
+
|
109
|
+
refute File.exist?(hg.activity.send(:log_filename)) # Make sure we cleaned up after ourselves
|
110
|
+
|
111
|
+
# Verify that we got the commits in forward chronological order
|
112
|
+
commits.map(&:token).must_equal(%w[01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
113
|
+
b14fa4692f949940bd1e28da6fb4617de2615484
|
114
|
+
468336c6671cbc58237a259d1b7326866afc2817
|
115
|
+
75532c1e1f1de55c2271f6fd29d98efbe35397c4
|
116
|
+
655f04cf6ad708ab58c7b941672dce09dd369a18])
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
it 'each_commit_for_branch' do
|
121
|
+
commits = []
|
122
|
+
|
123
|
+
with_hg_repository('hg', 'develop') do |hg|
|
124
|
+
commits = hg.activity.each_commit
|
125
|
+
end
|
126
|
+
|
127
|
+
commits.map(&:token).must_equal(%w[01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
128
|
+
b14fa4692f949940bd1e28da6fb4617de2615484
|
129
|
+
468336c6671cbc58237a259d1b7326866afc2817
|
130
|
+
75532c1e1f1de55c2271f6fd29d98efbe35397c4
|
131
|
+
4d54c3f0526a1ec89214a70615a6b1c6129c665c])
|
132
|
+
end
|
133
|
+
|
134
|
+
it 'each_commit_after' do
|
135
|
+
commits = []
|
136
|
+
with_hg_repository('hg') do |hg|
|
137
|
+
hg.activity.each_commit(after: '468336c6671cbc58237a259d1b7326866afc2817') do |c|
|
138
|
+
commits << c
|
139
|
+
end
|
140
|
+
commits.map(&:token).must_equal(%w[75532c1e1f1de55c2271f6fd29d98efbe35397c4
|
141
|
+
655f04cf6ad708ab58c7b941672dce09dd369a18])
|
142
|
+
end
|
143
|
+
end
|
144
|
+
|
145
|
+
it 'open_log_file_encoding' do
|
146
|
+
with_hg_repository('hg_with_invalid_encoding') do |hg|
|
147
|
+
hg.activity.send(:open_log_file) do |io|
|
148
|
+
io.read.valid_encoding?.must_equal true
|
149
|
+
end
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
it 'commits_encoding' do
|
154
|
+
with_hg_repository('hg_with_invalid_encoding') do |hg|
|
155
|
+
hg.activity.commits
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
it 'verbose_commit_encoding' do
|
160
|
+
with_hg_repository('hg_with_invalid_encoding') do |hg|
|
161
|
+
hg.activity.verbose_commit('51ea5277ca27')
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
describe 'head' do
|
167
|
+
it 'hg_head_and_parents' do
|
168
|
+
with_hg_repository('hg') do |hg|
|
169
|
+
hg.activity.head_token.must_equal '655f04cf6ad708ab58c7b941672dce09dd369a18'
|
170
|
+
hg.activity.head.token.must_equal '655f04cf6ad708ab58c7b941672dce09dd369a18'
|
171
|
+
assert hg.activity.head.diffs.any? # diffs should be populated
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
it 'head_with_branch' do
|
176
|
+
with_hg_repository('hg', 'develop') do |hg|
|
177
|
+
hg.activity.head.token.must_equal '4d54c3f0526a1ec89214a70615a6b1c6129c665c'
|
178
|
+
assert hg.activity.head.diffs.any?
|
179
|
+
end
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
describe 'commit_tokens' do
|
184
|
+
it 'must work with after argument' do
|
185
|
+
with_hg_repository('hg') do |hg|
|
186
|
+
hg.activity.commit_tokens.must_equal(%w[01101d8ef3cea7da9ac6e9a226d645f4418f05c9
|
187
|
+
b14fa4692f949940bd1e28da6fb4617de2615484
|
188
|
+
468336c6671cbc58237a259d1b7326866afc2817
|
189
|
+
75532c1e1f1de55c2271f6fd29d98efbe35397c4
|
190
|
+
655f04cf6ad708ab58c7b941672dce09dd369a18])
|
191
|
+
|
192
|
+
after = '01101d8ef3cea7da9ac6e9a226d645f4418f05c9'
|
193
|
+
hg.activity.commit_tokens(after: after).must_equal(%w[b14fa4692f949940bd1e28da6fb4617de2615484
|
194
|
+
468336c6671cbc58237a259d1b7326866afc2817
|
195
|
+
75532c1e1f1de55c2271f6fd29d98efbe35397c4
|
196
|
+
655f04cf6ad708ab58c7b941672dce09dd369a18])
|
197
|
+
|
198
|
+
after = '75532c1e1f1de55c2271f6fd29d98efbe35397c4'
|
199
|
+
hg.activity.commit_tokens(after: after).must_equal ['655f04cf6ad708ab58c7b941672dce09dd369a18']
|
200
|
+
|
201
|
+
hg.activity.commit_tokens(after: '655f04cf6ad708ab58c7b941672dce09dd369a18').must_be :empty?
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
it 'must work with trunk_only argument' do
|
206
|
+
with_hg_repository('hg_dupe_delete') do |hg|
|
207
|
+
hg.activity.commit_tokens(trunk_only: false).must_equal(%w[73e93f57224e3fd828cf014644db8eec5013cd6b
|
208
|
+
732345b1d5f4076498132fd4b965b1fec0108a50
|
209
|
+
525de321d8085bc1d4a3c7608fda6b4020027985
|
210
|
+
72fe74d643bdcb30b00da3b58796c50f221017d0])
|
211
|
+
|
212
|
+
hg.activity.commit_tokens(trunk_only: true).must_equal(['73e93f57224e3fd828cf014644db8eec5013cd6b',
|
213
|
+
'732345b1d5f4076498132fd4b965b1fec0108a50',
|
214
|
+
# '525de321d8085bc1d4a3c7608fda6b4020027985', # branch
|
215
|
+
'72fe74d643bdcb30b00da3b58796c50f221017d0'])
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
it 'must work with trunk_only and after arguments' do
|
220
|
+
with_hg_repository('hg_dupe_delete') do |hg|
|
221
|
+
opts = { after: '73e93f57224e3fd828cf014644db8eec5013cd6b', trunk_only: false }
|
222
|
+
hg.activity.commit_tokens(opts).must_equal(%w[732345b1d5f4076498132fd4b965b1fec0108a50
|
223
|
+
525de321d8085bc1d4a3c7608fda6b4020027985
|
224
|
+
72fe74d643bdcb30b00da3b58796c50f221017d0])
|
225
|
+
|
226
|
+
opts = { after: '73e93f57224e3fd828cf014644db8eec5013cd6b', trunk_only: true }
|
227
|
+
hg.activity.commit_tokens(opts).must_equal(['732345b1d5f4076498132fd4b965b1fec0108a50',
|
228
|
+
# '525de321d8085bc1d4a3c7608fda6b4020027985', # On branch
|
229
|
+
'72fe74d643bdcb30b00da3b58796c50f221017d0'])
|
230
|
+
|
231
|
+
hg.activity.commit_tokens(after: '72fe74d643bdcb30b00da3b58796c50f221017d0', trunk_only: true).must_be :empty?
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
235
|
+
it 'must work with after and upto arguments' do
|
236
|
+
with_hg_repository('hg_walk') do |hg|
|
237
|
+
commit_tokens = CommitTokensHelper.new(hg, commit_labels)
|
238
|
+
# Full history to a commit
|
239
|
+
commit_tokens.between(nil, :A).must_equal %i[A]
|
240
|
+
commit_tokens.between(nil, :B).must_equal %i[A B]
|
241
|
+
commit_tokens.between(nil, :C).must_equal %i[A B G H C]
|
242
|
+
commit_tokens.between(nil, :D).must_equal %i[A B G H C I D]
|
243
|
+
commit_tokens.between(nil, :G).must_equal %i[A B G]
|
244
|
+
commit_tokens.between(nil, :H).must_equal %i[A B G H]
|
245
|
+
commit_tokens.between(nil, :I).must_equal %i[A B G H C I]
|
246
|
+
|
247
|
+
# Limited history from one commit to another
|
248
|
+
commit_tokens.between(:A, :A).must_be :empty?
|
249
|
+
commit_tokens.between(:A, :B).must_equal %i[B]
|
250
|
+
commit_tokens.between(:A, :C).must_equal %i[B G H C]
|
251
|
+
commit_tokens.between(:A, :D).must_equal %i[B G H C I D]
|
252
|
+
commit_tokens.between(:B, :D).must_equal %i[G H C I D]
|
253
|
+
commit_tokens.between(:C, :D).must_equal %i[I D]
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
def commit_labels
|
258
|
+
{ A: '4bfbf836feeebb236492199fbb0d1474e26f69d9',
|
259
|
+
B: '23edb79d0d06c8c315d8b9e7456098823335377d',
|
260
|
+
C: '7e33b9fde56a6e3576753868d08fa143e4e8a9cf',
|
261
|
+
D: '8daa1aefa228d3ee5f9a0f685d696826e88266fb',
|
262
|
+
G: 'e43cf1bb4b80d8ae70a695ec070ce017fdc529f3',
|
263
|
+
H: 'dca215d8a3e4dd3e472379932f1dd9c909230331',
|
264
|
+
I: '3a1495175e40b1c983441d6a8e8e627d2bd672b6' }
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
describe 'cat' do
|
269
|
+
it 'must get file contents by current or parent commit' do
|
270
|
+
with_hg_repository('hg') do |hg|
|
271
|
+
expected = <<-EXPECTED.gsub(/ {10}/, '')
|
272
|
+
/* Hello, World! */
|
273
|
+
|
274
|
+
/*
|
275
|
+
* This file is not covered by any license, especially not
|
276
|
+
* the GNU General Public License (GPL). Have fun!
|
277
|
+
*/
|
278
|
+
|
279
|
+
#include <stdio.h>
|
280
|
+
main()
|
281
|
+
{
|
282
|
+
printf("Hello, World!\\n");
|
283
|
+
}
|
284
|
+
EXPECTED
|
285
|
+
|
286
|
+
diff = OhlohScm::Diff.new(path: 'helloworld.c')
|
287
|
+
commit = OhlohScm::Commit.new(token: '75532c1e1f1d')
|
288
|
+
# The file was deleted in revision 468336c6671c. Check that it does not exist now, but existed in parent.
|
289
|
+
hg.activity.cat_file(commit, diff).must_be_nil
|
290
|
+
hg.activity.cat_file_parent(commit, diff).must_equal expected
|
291
|
+
hg.activity.cat_file(OhlohScm::Commit.new(token: '468336c6671c'), diff).must_equal expected
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
# Ensure that we escape bash-significant characters like ' and & when they appear in the filename
|
296
|
+
it 'must handle funny file names' do
|
297
|
+
tmpdir do |dir|
|
298
|
+
# Make a file with a problematic filename
|
299
|
+
funny_name = '#|file_name` $(&\'")#'
|
300
|
+
file_content = 'foobar'
|
301
|
+
File.open(File.join(dir, funny_name), 'w') { |f| f.write file_content }
|
302
|
+
|
303
|
+
# Add it to an hg repository
|
304
|
+
`cd #{dir} && hg init && hg add * 2> /dev/null && hg commit -u tester -m test`
|
305
|
+
|
306
|
+
# Confirm that we can read the file back
|
307
|
+
hg = OhlohScm::Factory.get_core(scm_type: :hg, url: dir)
|
308
|
+
diff = OhlohScm::Diff.new(path: funny_name)
|
309
|
+
hg.activity.cat_file(hg.activity.head, diff).must_equal file_content
|
310
|
+
end
|
311
|
+
end
|
312
|
+
end
|
313
|
+
|
314
|
+
describe 'cleanup' do
|
315
|
+
it 'must call shutdown hg_client' do
|
316
|
+
activity = OhlohScm::Factory.get_core(scm_type: :hg, url: 'foobar').activity
|
317
|
+
hg_client = Struct.new(:foo)
|
318
|
+
activity.stubs(:hg_client).returns(hg_client)
|
319
|
+
hg_client.expects(:shutdown)
|
320
|
+
activity.cleanup
|
321
|
+
end
|
322
|
+
end
|
323
|
+
end
|