]> khamidou — GitHub mirrors - arcanist.git/commit
Split mercurial parsing and API
authorepriestley <git@epriestley.com>
Fri, 16 Sep 2011 10:53:52 +0000 (03:53 -0700)
committerepriestley <git@epriestley.com>
Fri, 16 Sep 2011 18:07:48 +0000 (11:07 -0700)
commitcbbd798e48a9982b85ef592174a678e2e17bebf1
tree621233449bd4a117920a137f44ae3e55a539cd06
parentc84d6255b4a8a6be539b615e36977458de49e02c
Split mercurial parsing and API

Summary: Move code to actually parse "hg" output into a separate class with some
tests, so I can reuse it in the import scripts. We should probably do this for
Git/SVN at some point, too.

Test Plan: Ran unit tests, used this class in Phabricator importers, grepped for
calls to removed private methods.

Reviewers: Makinde, jungejason, nh, tuomaspelkonen, aran

Reviewed By: Makinde

CC: aran, Makinde
Differential Revision: 942
src/__phutil_library_map__.php
src/repository/api/mercurial/ArcanistMercurialAPI.php
src/repository/api/mercurial/__init__.php
src/repository/parser/mercurial/ArcanistMercurialParser.php [new file with mode: 0644]
src/repository/parser/mercurial/__init__.php [new file with mode: 0644]
src/repository/parser/mercurial/__tests__/ArcanistMercurialParserTestCase.php [new file with mode: 0644]
src/repository/parser/mercurial/__tests__/__init__.php [new file with mode: 0644]
src/repository/parser/mercurial/__tests__/data/branches-basic.txt [new file with mode: 0644]
src/repository/parser/mercurial/__tests__/data/log-basic.txt [new file with mode: 0644]
src/repository/parser/mercurial/__tests__/data/log-empty.txt [new file with mode: 0644]
src/repository/parser/mercurial/__tests__/data/status-basic.txt [new file with mode: 0644]