question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support Mercurial

See original GitHub issue

I created at PR #155.

I’ve added a new environment variable called USE_HG, which if set will use mercurial. I mainly left the existing API mostly alone, except two things:

  1. I renamed .git_info to .dvcs_info, which returns the same data structure.
  2. I moved run_command to a new file called utilities. 2.b run_command now supports shell=True subprocess.Popen.

I also didn’t include remotes for hg, called paths in mercurial, but the concept in mercurial is slightly different, the docs for coveralls don’t seem to support it, and I’m not sure what value it adds in any event.

One last bit, I couldn’t seem to make non-ascii chars work in the .hg/hgrc, so I removed that from the tests.

The USE_HG flag should be documented, but there isn’t guidance on how documentation should be added, so I left it alone for now. I’ll add it prior to merge - I just would appreciate some guidance.

One last note: GIT_OR_HG is all caps because initially I had it as a global var, but this was problematic with the test runner setting the variable on import (git first) and then subsequently failing. I’ll change it to lower case whenever someone get’s back to me on the documentation bit.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Themanwithoutaplancommented, Aug 25, 2018

Thanks for the tip but the tox config is public this adds dependencies that might not be fulfillable, say in a fork.

0reactions
TheKevJamescommented, Aug 24, 2018

@Themanwithoutaplan just a heads up you can include coveralls in your cov tox job so long as you pass the right envs through, eg.

[cov]
passenv = COVERALLS_REPO_TOKEN GIT_
deps =
    coveralls
commands =
    coverage run --source=yourpackagename setup.py test
    coveralls

You can find more info in our docs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mercurial SCM
Mercurial is a free, distributed source control management tool. It efficiently handles projects of any size and offers an easy and intuitive interface....
Read more >
Sunsetting Mercurial support in Bitbucket
After much consideration, we've decided to remove Mercurial support from Bitbucket Cloud and its API. Mercurial features and repositories will be officially ...
Read more >
BitBucket Mercurial Repository Support Ended | What to Do
Bitbucket Mercurial support ended on July 1, 2020. Your Mercurial repository needs a new home. Learn your options for hosting Mercurial ...
Read more >
Bitbucket to no longer support Mercurial, users must ...
Bitbucket announced to no longer support Mercurial repositories after May 2020. Bitbucket, owned by Atlassian is a web-based version ...
Read more >
Mercurial - Wikipedia
Mercurial is a distributed revision control tool for software developers. It is supported on Microsoft Windows and Unix-like systems, such as FreeBSD, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found