There will be about 1h of downtime on 2020-03-02 at 13:00 UTC+1 (change of servers and upgrade to Heptapod 0.20.0 final)

debuggitdir: add new command

This is useful for interacting with the Git repository directly,
either from shell scripts, the terminal, or perhaps an alias like

git=!GIT_DIR=$(hg debuggitdir) git "$@"

...and with that, you can easily access features not offered by
Dulwich such as `hg git gc`.
parent c56eb178b379
Pipeline #13006 passed with stages
in 3 minutes and 23 seconds
......@@ -259,6 +259,12 @@ def gclear(ui, repo):
def gitdir(ui, repo):
'''get the root of the git repository'''
repo.ui.write(os.path.normpath(repo.githandler.gitdir), b'\n')
[(b'r', b'rev', b'', _(b'revision to verify'), _(b'REV'))],
_(b'[-r REV]'))
......@@ -3,6 +3,8 @@ Load commonly used test logic
$ hg init hgrepo
$ cd hgrepo
$ hg debuggitdir
$ echo alpha > alpha
$ hg add alpha
$ fn_hg_commit -m "add alpha"
......@@ -33,6 +35,8 @@ configure for use from git
0 files updated, 0 files merged, 1 files removed, 0 files unresolved
$ echo "[git]" >> .hg/hgrc
$ echo "intree = True" >> .hg/hgrc
$ hg debuggitdir
$ hg gexport
do some work
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment