hg-github
Created by Stephen McDonald
hg-github is a Mercurial extension that wraps hg-git, and supports a work-flow where repositories are hosted on Bitbucket and mirrored on GitHub. This work-flow normally requires adding Git paths to each repository’s config file, and creating Mercurial bookmarks pointing to the GitHub repository’s branch name. hg-github takes care of these for you automatically. hg-github is BSD licensed.
Installation
The easiest way to install hg-github is directly from PyPi using pip or setuptools by running the respective command below:
$ pip install -U hg-github
or:
$ easy_install -U hg-github
Otherwise you can download hg-github and install it directly from source:
$ python setup.py install
Once installed, add hggithub to the extensions section in your global .hgrc file:
[extensions] hggithub =
Note that there isn’t a dash in hggithub in your .hgrc file. You also don’t need to add the hg-git extension, as it is wrapped and used automatically by hg-github.
Once installed, assuming the default remote location of your repository is on Bitbucket, the GitHub path is automatically added and given the name github, so you can push to it with the following command:
$ hg push github
Repository Paths
As mentioned above, the GitHub path is given the name github when the default remote location is on Bitbucket. For other named Bitbucket locations, the name github-NAME is given, where NAME is the name of the path located on BitBucket. For example consider the following .hg/hgrc repo config:
[paths] default = ssh://hg@bitbucket.org/stephenmcd/hg-git somefork = ssh://hg@bitbucket.org/stephenmcd/hg-git-temp
hg-git will add entries to the config file as follows. Note that the config file isn’t actually written to:
[paths] default = ssh://hg@bitbucket.org/stephenmcd/hg-github somefork = ssh://hg@bitbucket.org/stephenmcd/hg-github-temp github = git+ssh://git@github.com/stephenmcd/hg-github.git github-somefork = git+ssh://git@github.com/stephenmcd/hg-github-temp.git
GitHub Username
hg-github assumes you have the same username on GitHub and Bitbucket. If you have a different GitHub username, you can specify it by adding the following section to your global .hgrc file. For example my GitHub username is stephenmcd:
[github] username = stephenmcd
Metadata
Release files for hg-github 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hg-github-0.1.5.tar.gz | 3.9 kB | Without provenance | Details for hg-github-0.1.5.tar.gz |
Release files / hg-github-0.1.5.tar.gz
| Download URL | hg-github-0.1.5.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50c2536adb8f007eea29b7a8efafd8622d88f44db6348f20206742d592f660f0
|
|
BLAKE2b-256 checksum How to use checksums |
4076e0f308ed9a374a6cfdc1a2f28e252206ffaae321807620efc7acb23fe796
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hg-github 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.