Mercurial > hg-stable
comparison setup.py @ 44489:ad718271a9eb
git: skeleton of a new extension to _directly_ operate on git repos
This is based in part of work I did years ago in hgit, but it's mostly
new code since I'm using pygit2 instead of dulwich and the hg storage
interfaces have improved. Some cleanup of old hgit code by Pulkit,
which I greatly appreciate.
test-git-interop.t does not cover a whole lot of cases, but it
passes. It includes status, diff, making a new commit, and `hg annotate`
working on the git repository.
This is _not_ (yet) production quality code: this is an
experiment. Known technical debt lurking in this implementation:
* Writing bookmarks just totally ignores transactions.
* The way progress is threaded down into the gitstore is awful.
* Ideally we'd find a way to incrementally reindex DAGs. I'm not sure
how to do that efficiently, so we might need a "known only fast-forwards"
mode on the DAG indexer for use on `hg commit` and friends.
* We don't even _try_ to do anything reasonable for `hg pull` or `hg push`.
* Mercurial need an interface for the changelog type.
Tests currently require git 2.24 as far as I'm aware: `git status` has
some changed output that I didn't try and handle in a compatible way.
This patch has produced some interesting cleanups, most recently on
the manifest type. I expect continuing down this road will produce
other meritorious cleanups throughout our code.
Differential Revision: https://phab.mercurial-scm.org/D6734
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 11 Feb 2020 00:44:59 -0500 |
parents | 79ac59d3f73d |
children | 5cbe2c0ebc53 |
comparison
equal
deleted
inserted
replaced
44488:a08bbdf839ae | 44489:ad718271a9eb |
---|---|
1212 'hgext', | 1212 'hgext', |
1213 'hgext.convert', | 1213 'hgext.convert', |
1214 'hgext.fsmonitor', | 1214 'hgext.fsmonitor', |
1215 'hgext.fastannotate', | 1215 'hgext.fastannotate', |
1216 'hgext.fsmonitor.pywatchman', | 1216 'hgext.fsmonitor.pywatchman', |
1217 'hgext.git', | |
1217 'hgext.highlight', | 1218 'hgext.highlight', |
1218 'hgext.hooklib', | 1219 'hgext.hooklib', |
1219 'hgext.infinitepush', | 1220 'hgext.infinitepush', |
1220 'hgext.largefiles', | 1221 'hgext.largefiles', |
1221 'hgext.lfs', | 1222 'hgext.lfs', |