Is there equivalent of git Revert/cherry-pick for Hg?
Is there a simple equivalent of using git revert, in mercurial? Apparently
hg revert is mean to checkout a certain file, I haven't found a clear answer to how to add a commit (
git cherry-pick) or apply the reverse diff of the commit (
I'm wanting to reverse some commits to default branch that were pushed out awhile back, not reversing those before or after - so hg backout, or hg revert don't seem to be the right command.
According to the following post: http://davidvg.com/2011/12/07/converting-a-git-repo-to-svn a git repo can be converted to an svn repo using hg convert. This works for me, however, the resulting svn r
I issued hg qnew without realizing that it includes any outstanding changes into the patch. I'd like to back that out and pick only specific changes using hg qrecord. How can I undo qnew?
I'm teaching HG to my students, as it is a good playskool DVCS (not powerful as GIT but simple to start working with trivial concepts). I use HG because it seems very difficult to destroy previous ent
This is somewhat related to my security question here. Is it a bad idea to use an hg / mercurial repository for a live website? If so, why? Furthermore, we have dev, test and production installations
at the moment we're using SVN (yeah, I know that's shame :)) and we're checking possibility to move for Git or Hg. At the moment we have one svn repo with structure like that: Platform 1- . Country 1
Not just the command, but the actual behavior... hg purge will delete all untracked files. I thought it was git clean, but nope... $ git clean fatal: clean.requireForce defaults to true and neither -n
I have a number of branches in a git repository: david@Panama ~/app: git branch -r origin/HEAD -> origin/master origin/master origin/newButtons origin/newFonts origin/serverView If I try and impor
I have a file foo.py with some history. I want to rename it bar.py but see the history with hg log. I tried hg rename. It does not seem to maintain the history. FYI. I only browsed the man page.
This is a question that's been bothering me for a while. I've done my homework and checked stackoverflow and found at least these two topics about my question: Git for Mercurial like git-svn and Git i
I develop a simple web application based on CakePHP using Google Code and git to manage the code. So far I used git update-index --assume-unchanged on the database configuration file after I filled in
I'm really quite frustrated at this point. I have an existing hg repository that has months of coding history in it, and I want to get this into a private Github repository so I can work on it from th
I am using tortoise hg and my repository contains subrepo. The subrepo is very large and takes really really long time to update. Is there a way to update my repository but skip updating the subrepo?
I'm using both mercurial and git for different projects and like them both. What I find a bit annoying about mercurial is that hg status shows paths relative to the repository root, not to the curre
Accidentally used > instead of >> ! The overwritten file was added by hg add two days ago but was never commited. Can hg undo that for me (maybe by magic) ?
Using Mercurial (hg), can you just hg backout all the commits you did for the files you don't want to push, and then do a push? Because Mercurial (or Git) won't let us push a single file or a single
I am using SmartGit/Hg 4.6.2. Setup went properly. I connected my git account. My git account is an organization, because I am working on my project with a friend. When I click any of the options rela
I have a problem with hg convert. When I write in the command line hg convert f:/test it gives me this: abort: invalid mode ('r') or filename. What I doing wrong?
I am recently learning git, and found people can delete short branches, but in Hg, after merging the branch to default, how could I delete it?
$ mkdir foo $ cd foo $ hg init . $ hg log abort: Is a directory $ hg history abort: Is a directory Darwin Host.local 9.6.1 Darwin Kernel Version 9.6.1: Wed Dec 10 10:38:33 PST 2008; root:xnu-1228.9.7
To convince certain persons to shift from Clearcase to Git, I need to show them alternatives to the baselining and checking in/out documents under activity names. How can these be achieved in Git? I
I'm trying to do a 'hg convert', to pull from a Git repo into an Hg one. Now, I don't have Git installed on my Windows 7 machine; is that necessary? I'm using the TortoiseHG commandline, and I have ac
Hosting Mercurial on a windows box thru IIS. I have a root directory where I put all of my repos d:\repos - ProjectA - .hg - hgrc - ProjectB - .hg - hgrc - ProjectC - .hg - hgrc All of the repos' hgr
I'm new to Mercurial and I was hoping that you guys could help. I made and committed some changes on the default and dev branch on my local system. When I ran the hg push command, I got the followin
This may sound silly but when I wanted to revert a hg merge command, I issued hg rollback. Later i realized I have to use hg update -C -r . to clear the merged but uncommitted changes. Now I want
I have Tortoise Hg installed on my Windows box, and have been using mercurial via the Tortoise GUI and also from the windows commandline. I installed hg-git as recommended on http://hg-git.github.com/
Is it possible to delete a remote branch with hg-git? I can delete the tag locally (hg bm -d old-branch), but it's not obvious how to tell the git server to do the same.
How can I combine the Mercurial commands hg pull and hg update into one?
I'm trying to write a simple script that clones an existing Mercurial kiln repository that uses https authentications. I have this snippet: from mercurial import hg, ui repo = hg.repository(ui.ui(),
I want to fetch a single file from a git repository. Using SVN, I can use svn export as follows: sudo svn export http://www.example.com/repos/Trunk/pathtofile/file.ext This just downloads the file, n
Does Git have any command equivalent to Mercurial's hg id? I.e. a command that prints the parent commit's hash and a plus sign if there are changes in the working directory?
very new in Mercurial. I have noticed that my hg init is not working. let me explain it: when I give this command hg clone http://www.selenic.com/repo/hello my-hello ,then, my_hello folder is created
I'm really happy that SourceTree has Mercurial embedded. On the odd occasion I would like to run an hg command from the CLI, like hg status To which I get hg: command not found Can I make modificati
Using https://github.com/AndreyNikiforov/vault2git I was able to convert a Vault repo to Git and then used Mercurial's hg convert to get a hg repo. The only issues is that after running hg convert the
I read that git-walk next / git-walk prev will allow you to move through changesets committed linearly so that you can play them back in a presentational setting within your local working copy. Does h
I found a wonderful version control software in the internet which is called smartgit/hg.Before using it I have to set the executable path of git and hg. The git executable path is automatically set t
I can't clone my repository via http: abort: 'http://MYREPO' does not appear to be an hg repository! Firstly, I created a new repo by hg init MYREPO followed by adding some file and commit. The dir wi
I must convert a branchy mercurial repo into a git repo AND continue to pull changes from mercurial to git (one-way only) for some time. Existing hg-to-git answers do not seem to handle branches corre
we use svn at work but for my personal projects I decided to use git. So I installed git yesterday and I wonder what is the revision number equivalent in git. Let's say we work on version 3.0.8 and ev
At work I am using a svn repository shared among 7 people. To avoid plaguing my mistakes with commits and breaking the builds for everyone and to avoid branching in svn, I have a created a hg reposito
I have followed the documentation in https://developer.mozilla.org/En/Developer_Guide/Source_Code/Mercurial And I have download FF source using this hg clone http://hg.mozilla.org/mozilla-central/ src
I am following the directions here trying to get Mercurial running on my shared HostGator account. I am supposed to create a hg directory, but I am unsure if it is to be in the /home/user/ location
When I manually check if a local Git repository needs updates from a remote server I'll run git remote show upstream and interpret its output. But now I'm trying to do this within an Python applicatio
I am trying to automate hg commit and hg push commands , for that I need to call those commands from firefox extension (which I am working on). Is there a way to do it without using batch files ?
UPDATE - I'm probably being daft, see my last update below. I just did a hg push and it timed out, and now when I try hg push again I get a message 'no changes found', however I can see in the target
I was happily using Git - made some commits a couple of nights ago, which are reflected in the remote repo. Last night I opened up Smartgit Hg and it tells me there are missing trees. I ran git fsck -
working directory Did a hg commit (resulted in rev3) Copied some directories inside ... changed some files. Did hg add hg commit (resulted in rev4 - tip) How to get back exactly to the state of r
We have a large, old repository with largefiles. I want to replicate the repository to a backup server using a cron script that runs hg pull. However, this command doesn't retrieve the largefiles. I c
(Mercurial newbie) I'm trying to get hg log to give me the full changeset description, but without the file listing given by the -v option. Basically, I want the default output but with the full descr
I have tried to host a Mercurial HG repository using a Scriptalias. ScriptAlias /hg/ htdocs/hgwebdir.cgi If I go to Chrome it display the contents of the cgi file. In IE it does render however image
In IntelliJ IDEA 13, the VCS menu contains the Update Project option. When using Git, this brings up the following dialog: I find that the UpdateType=Rebase and Clean=Stash options behave perfect