Ticket #167 (new enhancement)
Proposing New HgKit API
| Reported by: | StefanC | Owned by: | zingo |
|---|---|---|---|
| Priority: | major | Milestone: | Release 0.3.x |
| Component: | MercurialEclipse | Version: | |
| Keywords: | Cc: | cmahnke@… |
Description
I propose we should create a high level HgKit? client-API (name stolen from SvnKit?).
If you check out the client API for SvnKit? there are a number of *Clients.
for instance
SVNCommitClient SVNDiffClient SVNLogClient etc.
I propose there should be a separate library for MEP which uses this library. the HgKit? would still use the hg binary and parse the output (until there is a real Java API for Hg :-)).
For instance, there could be a few hgclients right now such as
- one stop shop for diffs
hg clone hg incoming hg outgoing
- commit
- add
- remove
- rollback
- well... logs! :-)
The benefit is, I believe, less complexity and you know where to go to look for a specific HgCommand? and where to implement it if its lacking.
I haven't thought too much of the overall structure of the client API, but if you or anyone else has some input...
