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
data/test/unit/bzr_head_test.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require_relative '../test_helper'
|
2
|
-
|
3
|
-
module OhlohScm::Adapters
|
4
|
-
class BzrHeadTest < OhlohScm::Test
|
5
|
-
|
6
|
-
def test_head_and_parents
|
7
|
-
with_bzr_repository('bzr') do |bzr|
|
8
|
-
assert_equal 'test@example.com-20111222183733-y91if5npo3pe8ifs', bzr.head_token
|
9
|
-
assert_equal 'test@example.com-20111222183733-y91if5npo3pe8ifs', bzr.head.token
|
10
|
-
assert bzr.head.diffs.any? # diffs should be populated
|
11
|
-
|
12
|
-
assert_equal 'obnox@samba.org-20090204004942-73rnw0izen42f154', bzr.parents(bzr.head).first.token
|
13
|
-
assert bzr.parents(bzr.head).first.diffs.any?
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
end
|
18
|
-
end
|
data/test/unit/bzr_misc_test.rb
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
require_relative '../test_helper'
|
3
|
-
|
4
|
-
module OhlohScm::Adapters
|
5
|
-
class BzrMiscTest < OhlohScm::Test
|
6
|
-
|
7
|
-
def test_exist
|
8
|
-
save_bzr = nil
|
9
|
-
with_bzr_repository('bzr') do |bzr|
|
10
|
-
save_bzr = bzr
|
11
|
-
assert save_bzr.exist?
|
12
|
-
end
|
13
|
-
assert !save_bzr.exist?
|
14
|
-
end
|
15
|
-
|
16
|
-
def test_ls_tree
|
17
|
-
with_bzr_repository('bzr') do |bzr|
|
18
|
-
assert_equal ['Cédric.txt',
|
19
|
-
'file1.txt',
|
20
|
-
'file3.txt',
|
21
|
-
'file4.txt',
|
22
|
-
'file5.txt'],
|
23
|
-
bzr.ls_tree(bzr.head_token).sort.map { |filename|
|
24
|
-
filename.force_encoding(Encoding::UTF_8) }
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
def test_export
|
29
|
-
with_bzr_repository('bzr') do |bzr|
|
30
|
-
OhlohScm::ScratchDir.new do |dir|
|
31
|
-
bzr.export(dir)
|
32
|
-
assert_equal ['.', '..', 'Cédric.txt', 'file1.txt', 'file3.txt', 'file4.txt', 'file5.txt'], Dir.entries(dir).sort
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
def test_tags
|
38
|
-
with_bzr_repository('bzr') do |bzr|
|
39
|
-
time_1 = Time.parse('2009-02-04 00:25:40 +0000')
|
40
|
-
time_2 = Time.parse('2011-12-22 18:37:33 +0000')
|
41
|
-
time_3 = Time.parse('2009-02-04 00:24:22 +0000')
|
42
|
-
|
43
|
-
monkey_patch_run_method_to_match_tag_patterns
|
44
|
-
assert_equal [['v1.0.0', '5', time_1], ['v2.0.0', '7', time_2], ['v 3.0.0', '2', time_3]], bzr.tags
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
private
|
49
|
-
|
50
|
-
def monkey_patch_run_method_to_match_tag_patterns
|
51
|
-
original_method = AbstractAdapter.method(:run)
|
52
|
-
AbstractAdapter.send :define_method, :run do |command|
|
53
|
-
if command =~ /bzr tags/
|
54
|
-
# The output of `bzr tags` sometimes has tags referring to ? while sometimes has dotted separators.
|
55
|
-
"0.11-1.1 ?\n0.14-1 ?\n....\n#{ original_method.call(command) }"
|
56
|
-
else
|
57
|
-
original_method.call(command)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,483 +0,0 @@
|
|
1
|
-
require_relative '../test_helper'
|
2
|
-
|
3
|
-
module OhlohScm::Parsers
|
4
|
-
class BzrParserTest < OhlohScm::Test
|
5
|
-
|
6
|
-
def test_empty_array
|
7
|
-
assert_equal([], BzrParser.parse(''))
|
8
|
-
end
|
9
|
-
|
10
|
-
def test_default_log_parser
|
11
|
-
sample_log = <<SAMPLE
|
12
|
-
------------------------------------------------------------
|
13
|
-
revno: 2
|
14
|
-
committer: Robin <robin@ohloh.net>
|
15
|
-
branch nick: bzr
|
16
|
-
timestamp: Wed 2009-02-04 01:49:42 +0100
|
17
|
-
message:
|
18
|
-
Second Revision
|
19
|
-
------------------------------------------------------------
|
20
|
-
revno: 1
|
21
|
-
committer: Jason <jason@ohloh.net>
|
22
|
-
branch nick: bzr
|
23
|
-
timestamp: Wed 2009-02-04 01:25:40 +0100
|
24
|
-
message:
|
25
|
-
Initial Revision
|
26
|
-
SAMPLE
|
27
|
-
|
28
|
-
commits = BzrParser.parse(sample_log)
|
29
|
-
|
30
|
-
assert commits
|
31
|
-
assert_equal 2, commits.size
|
32
|
-
|
33
|
-
assert_equal '2', commits[0].token
|
34
|
-
assert_equal 'Robin', commits[0].committer_name
|
35
|
-
assert_equal 'robin@ohloh.net', commits[0].committer_email
|
36
|
-
assert_equal "Second Revision\n", commits[0].message # Note \n at end of comment
|
37
|
-
assert_equal Time.utc(2009,2,4,0,49,42), commits[0].committer_date
|
38
|
-
assert_equal 0, commits[0].diffs.size
|
39
|
-
|
40
|
-
assert_equal '1', commits[1].token
|
41
|
-
assert_equal 'Jason', commits[1].committer_name
|
42
|
-
assert_equal 'jason@ohloh.net', commits[1].committer_email
|
43
|
-
assert_equal "Initial Revision\n", commits[1].message # Note \n at end of comment
|
44
|
-
assert_equal Time.utc(2009,2,4,0,25,40), commits[1].committer_date
|
45
|
-
assert_equal 0, commits[1].diffs.size
|
46
|
-
end
|
47
|
-
|
48
|
-
def test_verbose_log_parser
|
49
|
-
sample_log = <<SAMPLE
|
50
|
-
------------------------------------------------------------
|
51
|
-
revno: 2
|
52
|
-
committer: Robin <robin@ohloh.net>
|
53
|
-
branch nick: bzr
|
54
|
-
timestamp: Wed 2009-02-04 01:49:42 +0100
|
55
|
-
message:
|
56
|
-
Second Revision
|
57
|
-
removed:
|
58
|
-
file1.txt
|
59
|
-
modified:
|
60
|
-
file2.txt
|
61
|
-
------------------------------------------------------------
|
62
|
-
revno: 1
|
63
|
-
committer: Jason <jason@ohloh.net>
|
64
|
-
branch nick: bzr
|
65
|
-
timestamp: Wed 2009-02-04 01:25:40 +0100
|
66
|
-
message:
|
67
|
-
Initial Revision
|
68
|
-
added:
|
69
|
-
file1.txt
|
70
|
-
file2.txt
|
71
|
-
SAMPLE
|
72
|
-
|
73
|
-
commits = BzrParser.parse(sample_log)
|
74
|
-
|
75
|
-
assert commits
|
76
|
-
assert_equal 2, commits.size
|
77
|
-
|
78
|
-
assert_equal '2', commits[0].token
|
79
|
-
assert_equal 'Robin', commits[0].committer_name
|
80
|
-
assert_equal 'robin@ohloh.net', commits[0].committer_email
|
81
|
-
assert_equal "Second Revision\n", commits[0].message # Note \n at end of comment
|
82
|
-
assert_equal Time.utc(2009,2,4,0,49,42), commits[0].committer_date
|
83
|
-
assert_equal 2, commits[0].diffs.size
|
84
|
-
|
85
|
-
assert_equal 'file1.txt', commits[0].diffs[0].path
|
86
|
-
assert_equal 'D', commits[0].diffs[0].action
|
87
|
-
assert_equal 'file2.txt', commits[0].diffs[1].path
|
88
|
-
assert_equal 'M', commits[0].diffs[1].action
|
89
|
-
|
90
|
-
assert_equal '1', commits[1].token
|
91
|
-
assert_equal 'Jason', commits[1].committer_name
|
92
|
-
assert_equal 'jason@ohloh.net', commits[1].committer_email
|
93
|
-
assert_equal "Initial Revision\n", commits[1].message # Note \n at end of comment
|
94
|
-
assert_equal Time.utc(2009,2,4,0,25,40), commits[1].committer_date
|
95
|
-
assert_equal 2, commits[1].diffs.size
|
96
|
-
|
97
|
-
assert_equal 'file1.txt', commits[1].diffs[0].path
|
98
|
-
assert_equal 'A', commits[1].diffs[0].action
|
99
|
-
assert_equal 'file2.txt', commits[1].diffs[1].path
|
100
|
-
assert_equal 'A', commits[1].diffs[1].action
|
101
|
-
end
|
102
|
-
|
103
|
-
def test_verbose_log_parser_with_show_id
|
104
|
-
sample_log = <<SAMPLE
|
105
|
-
------------------------------------------------------------
|
106
|
-
revno: 2
|
107
|
-
revision-id: info@ohloh.net-20090204004942-73rnw0izen42f154
|
108
|
-
parent: info@ohloh.net-20090204002540-gmana8tk5f9gboq9
|
109
|
-
committer: Robin <robin@ohloh.net>
|
110
|
-
branch nick: bzr
|
111
|
-
timestamp: Wed 2009-02-04 01:49:42 +0100
|
112
|
-
message:
|
113
|
-
Second Revision
|
114
|
-
removed:
|
115
|
-
file1.txt file1.txt-20090204002338-awfasrgh9nuzc53d-1
|
116
|
-
modified:
|
117
|
-
file2.txt file2.txt-20090204002419-s025jc9k05dghk6d-1
|
118
|
-
------------------------------------------------------------
|
119
|
-
revno: 1
|
120
|
-
revision-id: info@ohloh.net-20090204002540-gmana8tk5f9gboq9
|
121
|
-
parent: info@ohloh.net-20090204002518-yb0x153oa6mhoodu
|
122
|
-
committer: Jason <jason@ohloh.net>
|
123
|
-
branch nick: bzr
|
124
|
-
timestamp: Wed 2009-02-04 01:25:40 +0100
|
125
|
-
message:
|
126
|
-
Initial Revision
|
127
|
-
added:
|
128
|
-
file1.txt file1.txt-20090204002338-awfasrgh9nuzc53d-1
|
129
|
-
file2.txt file2.txt-20090204002419-s025jc9k05dghk6d-1
|
130
|
-
SAMPLE
|
131
|
-
|
132
|
-
commits = BzrParser.parse(sample_log)
|
133
|
-
|
134
|
-
assert commits
|
135
|
-
assert_equal 2, commits.size
|
136
|
-
|
137
|
-
assert_equal 'info@ohloh.net-20090204004942-73rnw0izen42f154', commits[0].token
|
138
|
-
assert_equal 'Robin', commits[0].committer_name
|
139
|
-
assert_equal 'robin@ohloh.net', commits[0].committer_email
|
140
|
-
assert_equal "Second Revision\n", commits[0].message # Note \n at end of comment
|
141
|
-
assert_equal Time.utc(2009,2,4,0,49,42), commits[0].committer_date
|
142
|
-
assert_equal 2, commits[0].diffs.size
|
143
|
-
|
144
|
-
assert_equal 'file1.txt', commits[0].diffs[0].path
|
145
|
-
assert_equal 'D', commits[0].diffs[0].action
|
146
|
-
assert_equal 'file2.txt', commits[0].diffs[1].path
|
147
|
-
assert_equal 'M', commits[0].diffs[1].action
|
148
|
-
|
149
|
-
assert_equal 'info@ohloh.net-20090204002540-gmana8tk5f9gboq9', commits[1].token
|
150
|
-
assert_equal 'Jason', commits[1].committer_name
|
151
|
-
assert_equal 'jason@ohloh.net', commits[1].committer_email
|
152
|
-
assert_equal "Initial Revision\n", commits[1].message # Note \n at end of comment
|
153
|
-
assert_equal Time.utc(2009,2,4,0,25,40), commits[1].committer_date
|
154
|
-
assert_equal 2, commits[1].diffs.size
|
155
|
-
|
156
|
-
assert_equal 'file1.txt', commits[1].diffs[0].path
|
157
|
-
assert_equal 'A', commits[1].diffs[0].action
|
158
|
-
assert_equal 'file2.txt', commits[1].diffs[1].path
|
159
|
-
assert_equal 'A', commits[1].diffs[1].action
|
160
|
-
end
|
161
|
-
|
162
|
-
def test_verbose_log_parser_very_long_filename_with_show_id
|
163
|
-
sample_log = <<SAMPLE
|
164
|
-
------------------------------------------------------------
|
165
|
-
revno: 1
|
166
|
-
revision-id: info@ohloh.net-20090204002540-gmana8tk5f9gboq9
|
167
|
-
parent: info@ohloh.net-20090204002518-yb0x153oa6mhoodu
|
168
|
-
committer: Jason <jason@ohloh.net>
|
169
|
-
branch nick: bzr
|
170
|
-
timestamp: Wed 2009-02-04 01:25:40 +0100
|
171
|
-
message:
|
172
|
-
Initial Revision
|
173
|
-
added:
|
174
|
-
a very long filename with space intended to cause log parsing problems averylongfilenamewit-20090205232320-4fl43j6djs9pfnn4-1
|
175
|
-
SAMPLE
|
176
|
-
|
177
|
-
commits = BzrParser.parse(sample_log)
|
178
|
-
|
179
|
-
assert commits
|
180
|
-
assert_equal 1, commits.size
|
181
|
-
|
182
|
-
assert_equal 'info@ohloh.net-20090204002540-gmana8tk5f9gboq9', commits[0].token
|
183
|
-
assert_equal 'Jason', commits[0].committer_name
|
184
|
-
assert_equal 'jason@ohloh.net', commits[0].committer_email
|
185
|
-
assert_equal "Initial Revision\n", commits[0].message # Note \n at end of comment
|
186
|
-
assert_equal Time.utc(2009,2,4,0,25,40), commits[0].committer_date
|
187
|
-
|
188
|
-
assert_equal 1, commits[0].diffs.size
|
189
|
-
assert_equal 'a very long filename with space intended to cause log parsing problems', commits[0].diffs[0].path
|
190
|
-
assert_equal 'A', commits[0].diffs[0].action
|
191
|
-
end
|
192
|
-
|
193
|
-
def test_verbose_log_with_nested_merge_commits
|
194
|
-
sample_log = <<SAMPLE
|
195
|
-
------------------------------------------------------------
|
196
|
-
revno: 16
|
197
|
-
revision-id: robin@ohloh.net-20080629125019-qxk9qma8esphwwus
|
198
|
-
parent: robin@ohloh.net-20080629121849-2le5txjj7tkdq54f
|
199
|
-
parent: robin@ohloh.net-20080630050459-ox7a50k5qi6tg2z2
|
200
|
-
committer: robin <robin@ohloh.net>
|
201
|
-
branch nick: ohloh
|
202
|
-
timestamp: Sun 2008-06-29 05:50:19 -0700
|
203
|
-
message:
|
204
|
-
Committing merge
|
205
|
-
removed:
|
206
|
-
goodbye_world.c goodbye_world.c-20080625052902-61bbthtf22shh0p6-293
|
207
|
-
------------------------------------------------------------
|
208
|
-
revno: 12.1.2
|
209
|
-
revision-id: robin@ohloh.net-20080629214643-5ru67mh04j09cmiz
|
210
|
-
parent: robin@ohloh.net-20080629201028-923bdzz0qcjmd6cm
|
211
|
-
committer: robin <robin@ohloh.net>
|
212
|
-
branch nick: ohloh
|
213
|
-
timestamp: Sun 2008-06-29 14:46:43 -0700
|
214
|
-
message:
|
215
|
-
Second commit on branch
|
216
|
-
modified:
|
217
|
-
hello_world.c hello_world.c-20080625052902-61bbthtf22shh0p6-447
|
218
|
-
------------------------------------------------------------
|
219
|
-
revno: 12.1.1
|
220
|
-
revision-id: robin@ohloh.net-20080629201028-923bdzz0qcjmd6cm
|
221
|
-
parent: robin@ohloh.net-20080629191920-ioqljg6ihntzcz9y
|
222
|
-
committer: robin <robin@ohloh.net>
|
223
|
-
branch nick: ohloh
|
224
|
-
timestamp: Sun 2008-06-29 13:10:28 -0700
|
225
|
-
message:
|
226
|
-
First commit on branch
|
227
|
-
added:
|
228
|
-
goodbye_world.c goodbye_world.c-20080625052902-61bbthtf22shh0p6-422
|
229
|
-
------------------------------------------------------------
|
230
|
-
revno: 15
|
231
|
-
revision-id: robin@ohloh.net-20080629121849-2le5txjj7tkdq54f
|
232
|
-
parent: robin@ohloh.net-20080629092342-7jfxn10e2qchi931
|
233
|
-
committer: robin <robin@ohloh.net>
|
234
|
-
branch nick: ohloh
|
235
|
-
timestamp: Sun 2008-06-29 05:18:49 -0700
|
236
|
-
message:
|
237
|
-
First commit on trunk
|
238
|
-
modified:
|
239
|
-
hello_world.c hello_world.c-20080625052902-61bbthtf22shh0p6-293
|
240
|
-
SAMPLE
|
241
|
-
commits = BzrParser.parse(sample_log)
|
242
|
-
|
243
|
-
assert commits
|
244
|
-
assert_equal 4, commits.size
|
245
|
-
|
246
|
-
assert_equal 'robin@ohloh.net-20080629125019-qxk9qma8esphwwus', commits[0].token
|
247
|
-
assert_equal 'robin@ohloh.net-20080629214643-5ru67mh04j09cmiz', commits[1].token
|
248
|
-
assert_equal 'robin@ohloh.net-20080629201028-923bdzz0qcjmd6cm', commits[2].token
|
249
|
-
assert_equal 'robin@ohloh.net-20080629121849-2le5txjj7tkdq54f', commits[3].token
|
250
|
-
|
251
|
-
assert_equal 1, commits[0].diffs.size
|
252
|
-
assert_equal 'goodbye_world.c', commits[0].diffs[0].path
|
253
|
-
assert_equal 'D', commits[0].diffs[0].action
|
254
|
-
|
255
|
-
assert_equal 1, commits[1].diffs.size
|
256
|
-
assert_equal 'hello_world.c', commits[1].diffs[0].path
|
257
|
-
assert_equal 'M', commits[1].diffs[0].action
|
258
|
-
|
259
|
-
assert_equal 1, commits[2].diffs.size
|
260
|
-
assert_equal 'goodbye_world.c', commits[2].diffs[0].path
|
261
|
-
assert_equal 'A', commits[2].diffs[0].action
|
262
|
-
|
263
|
-
assert_equal 1, commits[3].diffs.size
|
264
|
-
assert_equal 'hello_world.c', commits[3].diffs[0].path
|
265
|
-
assert_equal 'M', commits[3].diffs[0].action
|
266
|
-
end
|
267
|
-
|
268
|
-
def test_parse_diffs
|
269
|
-
assert_equal 'A', BzrParser.parse_diffs('A', "helloworld.c").first.action
|
270
|
-
assert_equal 'helloworld.c', BzrParser.parse_diffs('A', "helloworld.c").first.path
|
271
|
-
end
|
272
|
-
|
273
|
-
def test_parse_diffs_rename
|
274
|
-
diffs = BzrParser.parse_diffs(:rename, "helloworld.c => goodbyeworld.c")
|
275
|
-
assert_equal 2, diffs.size
|
276
|
-
assert_equal 'D', diffs.first.action
|
277
|
-
assert_equal 'helloworld.c', diffs.first.path
|
278
|
-
assert_equal 'A', diffs.last.action
|
279
|
-
assert_equal 'goodbyeworld.c', diffs.last.path
|
280
|
-
end
|
281
|
-
|
282
|
-
def test_rename
|
283
|
-
log = <<-SAMPLE
|
284
|
-
------------------------------------------------------------
|
285
|
-
revno: 2
|
286
|
-
committer: info <info@ohloh.net>
|
287
|
-
timestamp: Wed 2005-09-14 21:27:20 +1000
|
288
|
-
message:
|
289
|
-
rename a file
|
290
|
-
renamed:
|
291
|
-
helloworld.c => goodbyeworld.c
|
292
|
-
SAMPLE
|
293
|
-
|
294
|
-
commits = BzrParser.parse(log)
|
295
|
-
|
296
|
-
assert commits
|
297
|
-
assert_equal 1, commits.size
|
298
|
-
assert_equal 2, commits.first.diffs.size
|
299
|
-
|
300
|
-
assert_equal 'D', commits.first.diffs.first.action
|
301
|
-
assert_equal 'helloworld.c', commits.first.diffs.first.path
|
302
|
-
|
303
|
-
assert_equal 'A', commits.first.diffs.last.action
|
304
|
-
assert_equal 'goodbyeworld.c', commits.first.diffs.last.path
|
305
|
-
end
|
306
|
-
|
307
|
-
def test_remove_dupes_add_remove
|
308
|
-
diffs = BzrParser.remove_dupes([ OhlohScm::Diff.new(:action => "A", :path => "foo"),
|
309
|
-
OhlohScm::Diff.new(:action => "D", :path => "foo") ])
|
310
|
-
assert_equal 1, diffs.size
|
311
|
-
assert_equal 'M', diffs.first.action
|
312
|
-
assert_equal 'foo', diffs.first.path
|
313
|
-
end
|
314
|
-
|
315
|
-
# A somewhat tricky case. A file is deleted, and another
|
316
|
-
# file is renamed to take its place. That file is then modified!
|
317
|
-
#
|
318
|
-
# This is what Ohloh expects to see:
|
319
|
-
#
|
320
|
-
# D goodbyeworld.c
|
321
|
-
# M helloworld.c
|
322
|
-
#
|
323
|
-
def test_complex_rename
|
324
|
-
log = <<-SAMPLE
|
325
|
-
------------------------------------------------------------
|
326
|
-
revno: 147.1.24
|
327
|
-
committer: info <info@ohloh.net>
|
328
|
-
timestamp: Wed 2005-09-14 21:27:20 +1000
|
329
|
-
message:
|
330
|
-
rename a file to replace an existing one, then modify it!
|
331
|
-
removed:
|
332
|
-
helloworld.c
|
333
|
-
renamed:
|
334
|
-
goodbyeworld.c => helloworld.c
|
335
|
-
modified:
|
336
|
-
helloworld.c
|
337
|
-
SAMPLE
|
338
|
-
|
339
|
-
diffs = BzrParser.parse(log).first.diffs
|
340
|
-
diffs.sort! { |a,b| a.path <=> b.path }
|
341
|
-
|
342
|
-
assert_equal 2, diffs.size
|
343
|
-
assert_equal 'D', diffs.first.action
|
344
|
-
assert_equal 'goodbyeworld.c', diffs.first.path
|
345
|
-
assert_equal 'M', diffs.last.action
|
346
|
-
assert_equal 'helloworld.c', diffs.last.path
|
347
|
-
end
|
348
|
-
|
349
|
-
def test_strip_trailing_asterisk_from_executables
|
350
|
-
log = <<-SAMPLE
|
351
|
-
------------------------------------------------------------
|
352
|
-
revno: 1
|
353
|
-
committer: info <info@ohloh.net>
|
354
|
-
timestamp: Wed 2005-09-14 21:27:20 +1000
|
355
|
-
message:
|
356
|
-
added an executable, also renamed an executable
|
357
|
-
added:
|
358
|
-
script*
|
359
|
-
renamed:
|
360
|
-
helloworld* => goodbyeworld*
|
361
|
-
SAMPLE
|
362
|
-
|
363
|
-
diffs = BzrParser.parse(log).first.diffs
|
364
|
-
diffs.sort! { |a,b| a.path <=> b.path }
|
365
|
-
|
366
|
-
assert_equal 'goodbyeworld', diffs[0].path
|
367
|
-
assert_equal 'helloworld', diffs[1].path
|
368
|
-
assert_equal 'script', diffs[2].path
|
369
|
-
end
|
370
|
-
|
371
|
-
def test_comment_that_contains_dashes
|
372
|
-
log = <<-SAMPLE
|
373
|
-
------------------------------------------------------------
|
374
|
-
revno: 2
|
375
|
-
committer: info <info@ohloh.net>
|
376
|
-
timestamp: Wed 2005-09-14 21:27:20 +1000
|
377
|
-
message:
|
378
|
-
This is a tricky commit message to confirm fix
|
379
|
-
to Ticket 5. We're including a line of dashes in
|
380
|
-
the message that resembles a log delimiter.
|
381
|
-
|
382
|
-
------------------------------------------------------------
|
383
|
-
|
384
|
-
Happy parsing!
|
385
|
-
added:
|
386
|
-
goodbyeworld.c
|
387
|
-
------------------------------------------------------------
|
388
|
-
revno: 1
|
389
|
-
committer: info <info@ohloh.net>
|
390
|
-
timestamp: Wed 2005-09-14 21:27:20 +1000
|
391
|
-
message:
|
392
|
-
Initial Revision
|
393
|
-
added:
|
394
|
-
helloworld.c
|
395
|
-
SAMPLE
|
396
|
-
|
397
|
-
commits = BzrParser.parse(log)
|
398
|
-
|
399
|
-
assert_equal 2, commits.size
|
400
|
-
assert_equal '2', commits.first.token
|
401
|
-
assert_equal 1, commits.first.diffs.size
|
402
|
-
assert_equal "goodbyeworld.c", commits.first.diffs.first.path
|
403
|
-
|
404
|
-
assert_equal '1', commits.last.token
|
405
|
-
assert_equal 1, commits.last.diffs.size
|
406
|
-
assert_equal "helloworld.c", commits.last.diffs.first.path
|
407
|
-
end
|
408
|
-
|
409
|
-
# In this example, directory "test/" is renamed to "/".
|
410
|
-
# This shows in the log as being renamed to an empty string.
|
411
|
-
def test_directory_renamed_to_root
|
412
|
-
log = <<-SAMPLE
|
413
|
-
------------------------------------------------------------
|
414
|
-
revno: 220.90.1
|
415
|
-
revision-id: info@ohloh.net-20081002201109-j4z0r2c8nsgbm2vk
|
416
|
-
parent: info@ohloh.net-20081002200737-pjao1idjcrxpk4n4
|
417
|
-
committer: Ohloh <info@ohloh.net>
|
418
|
-
branch nick: subvertpy
|
419
|
-
timestamp: Thu 2008-10-02 22:11:09 +0200
|
420
|
-
message:
|
421
|
-
Promote the test directory to the root.
|
422
|
-
renamed:
|
423
|
-
test => test-20081002184530-hz9mrr3wqq4l8qdx-1
|
424
|
-
SAMPLE
|
425
|
-
|
426
|
-
commits = BzrParser.parse(log)
|
427
|
-
|
428
|
-
assert_equal 1, commits.size
|
429
|
-
assert_equal 'info@ohloh.net-20081002201109-j4z0r2c8nsgbm2vk', commits.first.token
|
430
|
-
assert_equal 2, commits.first.diffs.size
|
431
|
-
assert_equal "D", commits.first.diffs.first.action
|
432
|
-
assert_equal "test", commits.first.diffs.first.path
|
433
|
-
assert_equal "A", commits.first.diffs.last.action
|
434
|
-
assert_equal "", commits.first.diffs.last.path
|
435
|
-
end
|
436
|
-
|
437
|
-
# It is possible for Bzr to report a file as both renamed and modified
|
438
|
-
# in the same commit. We should treat this as only a rename -- that is, we
|
439
|
-
# should see a simple DELETE from the old location and an ADD to the new location.
|
440
|
-
def test_rename_and_modify_in_one_commit
|
441
|
-
log = <<-SAMPLE
|
442
|
-
------------------------------------------------------------
|
443
|
-
revno: 1
|
444
|
-
message:
|
445
|
-
Changed the directory structure
|
446
|
-
renamed:
|
447
|
-
oldname => newname
|
448
|
-
modified:
|
449
|
-
newname
|
450
|
-
SAMPLE
|
451
|
-
|
452
|
-
commits = BzrParser.parse(log)
|
453
|
-
|
454
|
-
assert_equal 1, commits.size
|
455
|
-
assert_equal 2, commits.first.diffs.size
|
456
|
-
assert_equal "D", commits.first.diffs.first.action
|
457
|
-
assert_equal "oldname", commits.first.diffs.first.path
|
458
|
-
assert_equal "A", commits.first.diffs.last.action
|
459
|
-
assert_equal "newname", commits.first.diffs.last.path
|
460
|
-
end
|
461
|
-
|
462
|
-
def test_different_author_and_committer
|
463
|
-
log = <<-SAMPLE
|
464
|
-
------------------------------------------------------------
|
465
|
-
revno: 200
|
466
|
-
author: Jason Allen <jason@ohloh.net>
|
467
|
-
committer: Robin Luckey <robin@ohloh.net>
|
468
|
-
branch nick: foo
|
469
|
-
timestamp: Wed 2009-06-24 19:47:37 +0200
|
470
|
-
message:
|
471
|
-
Just a message
|
472
|
-
SAMPLE
|
473
|
-
|
474
|
-
commits = BzrParser.parse(log)
|
475
|
-
|
476
|
-
assert_equal 1, commits.size
|
477
|
-
assert_equal "Jason Allen", commits.first.author_name
|
478
|
-
assert_equal "jason@ohloh.net", commits.first.author_email
|
479
|
-
assert_equal "Robin Luckey", commits.first.committer_name
|
480
|
-
assert_equal "robin@ohloh.net", commits.first.committer_email
|
481
|
-
end
|
482
|
-
end
|
483
|
-
end
|