{"id":19656539,"url":"https://github.com/daggerok/mercurial","last_synced_at":"2026-03-19T10:59:36.703Z","repository":{"id":151041860,"uuid":"113993565","full_name":"daggerok/mercurial","owner":"daggerok","description":"Mercurial guide for Git users","archived":false,"fork":false,"pushed_at":"2018-02-13T18:20:59.000Z","size":15,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T00:44:12.749Z","etag":null,"topics":["hg","mercurial","mercurial-configuration"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daggerok.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-12T13:26:47.000Z","updated_at":"2023-01-04T11:12:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"01be6b18-c258-4976-932a-2645316f85f7","html_url":"https://github.com/daggerok/mercurial","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fmercurial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fmercurial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fmercurial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daggerok%2Fmercurial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daggerok","download_url":"https://codeload.github.com/daggerok/mercurial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240964855,"owners_count":19885817,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hg","mercurial","mercurial-configuration"],"created_at":"2024-11-11T15:28:04.720Z","updated_at":"2026-03-03T03:04:01.079Z","avatar_url":"https://github.com/daggerok.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# mercurial\nMergurial guide (for git users)\n\n## commands\n\n```bash\n# setup user name settings `git config --global user.name \"Maksim Kostromin\"; git config --global user.email daggerok@gmail.com`\nhg config --edit\n# [ui]\n# username = Maksim Kostormin \u003cdaggerok@gmail.com\u003e\n\n# init repo `git init`\nhg init\n\n# add files `git add .`\nhg add .\n\n# commit `git commit -am \"message\"`\nhg commit -m \"message\"\n\n# commit ignorring all log and tmp files\nhg commit -X '**.log' -X '**.tmp'\n\n# send update to remote repo `git push origin master`\nhg push\nhg push --branch default\n\n# fetch changes from repo `git pull origin master`\nhg pull\n\n# merge dry run\nhg merge -P\n\n# merge curernt working directory with remove branch (pull must be used before merge to get changes from remote)\nhg merge\n\n# fetch (pull) changes and du update\nhg pull -u\n\n# remove files `git rm -rf some-file`\nhg remove some-file\n\n# remove files from stash `git rm -rf some-file --cached`\nhg forget some-file\n\n# status `git status`\nhg status\n\n# history `git log`\nhg log\n\n# reset to branch `git reset --hard origin/master`\nhg update default --clean\n\n# show branches `git branch -a`\nhg branches\n\n# show current branch `git branch`\nhg branch\nhg identify -b\n\n# switch to another branch `git checkout feature`\nhg update feature\n\n# diff between revisions `git diff $hash1..$has2`\n# hg diff -r $rev1 -r rev2\nhg diff -r 127 -r 130\n# hg status --rev $rev1:$rev2\nhg status --rev 127:130\n# when hg log shows something like:\n#              $rev:$hash\n# changeset:   3641:07dcw41efwe1\n\n# revert files `git reset --hard $hash`\nhg revert --all --rev 123\n```\n\n## configurations\n\n**force mercurial do not ask password on Windows using TortoiseHg**\n\n* install TortoiseHg, let say it into `C:\\opt\\TortoisHg` directory\n* clone repo you want to not asked password anymore (replace my-user with yours)\n\n```bash\nhg clone ssh://hg@bitbucket.org/daggerok/rxjava-examples \"C:\\my-projects\\rxjava-examples\"\n```\n\n* edit `C:\\my-projects\\rxjava-examples\\.hg\\hgrc` file\n\n```bash\nnotepad C:\\my-projects\\rxjava-examples\\.hg\\hgrc\n```\n\n* finally content of hgrc should be like so (replace my-password with yours)\n\n```config\n[paths]\ndefault = ssh://hg@bitbucket.org/daggerok/rxjava-examples\n[ui]\nssh = \"C:\\opt\\TortoiseHg\\lib\\TortoisePlink.exe\" -ssh -pw my-password\n```\n\n* verify that password is not prompting anymore\n\n```bash\nhg pull --cwd C:\\my-projects\\rxjava-examples\n```\n\nDone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fmercurial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaggerok%2Fmercurial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaggerok%2Fmercurial/lists"}