Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scm: support hg #945

Closed
efiop opened this issue Jul 25, 2018 · 1 comment
Closed

scm: support hg #945

efiop opened this issue Jul 25, 2018 · 1 comment

Comments

@efiop
Copy link
Contributor

efiop commented Jul 25, 2018

Need to simply add a proper driver to https://github.com/iterative/dvc/blob/master/dvc/scm.py (see Git class as an example).

SebastianMauchly pushed a commit to SebastianMauchly/dvc that referenced this issue Oct 11, 2018
Added preliminary support for using dvc with a mercurial repository
instead of a git one. Changes include:
- Added a new Mercurial class in scm.py that implements the Base class
- Added python-hglib as a dependency, comparable to gitpython
- Changed various logging messages to reflect multi-vcs support, and
  in some cases brought this reporting under the purview of the
  particular scm subclass

Note that in rare cases where both a mercurial and git repo are
found in the same repo, a current limitation implies it will always
choose to use git.

This commit includes a shake at supporting installing mercurial
post-update hooks, but they are not well covered the test suite
and will likely need further work. Mercurial handles hooks all
from one file, so it requires additional intelligence to check
whether the hook is already installed.

Fixes # iterative#945
@ghost ghost added the hacktoberfest label Oct 17, 2018
@efiop
Copy link
Contributor Author

efiop commented Aug 20, 2019

We haven't come back to working on this and now considering the news https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket , it looks like we shouldn't support hg at all, as the demand will most likely be declining from now on. Hg users still can use dvc in --no-scm(see dvc init) mode, which provides all the core features like add/run/repro/push/pull/fetch/status/etc, but without scm tags/branches support for metrics/gc and other operations. Closing.

@efiop efiop closed this as completed Aug 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant