mercurial
Git interoperability with a Mercurial Repository
I use GIT on a Mac. Enough said. I have the tools, I have the experience. And I want to continue to use it. No wars here… The problem is always with interoperability. Most people use SVN, which is great for me. Git SVN works out of the box, and is a no frills solution. … Read more
Store password in TortoiseHg
Is there a way to configure TortoiseHg to store my password? I have a project hosted on Google Code that I access using TortoiseHg. Whenever I want to push changes to Google Code TortoiseHg prompts me for a username and password. Google Code requires me to use an auto-generated password, and it gets quite repetitive … Read more
Mercurial: Can I rename a branch?
We now have a “stiging” branch, where “staging” seems to be a far better semantic fit. What’s a good strategy for handling this? 5 Answers 5
Hg: How to do a rebase like git’s rebase
In Git I can do this: 1. Start working on new feature: $ git co -b newfeature-123 # (a local feature development branch) do a few commits (M, N, O) master A—B—C \ newfeature-123 M—N—O 2. Pull new changes from upstream master: $ git pull (master updated with ff-commits) master A—B—C—D—E—F \ newfeature-123 M—N—O 3. … Read more
Mercurial: how to amend the last commit?
I’m looking for a counter-part of git commit –amend in Mercurial, i.e. a way to modify the commit which my working copy is linked to. I’m only interested in the last commit, not an arbitrary earlier commit. The requirements for this amend-procedure are: if possible, it should not require any extensions. It must not require … Read more
Is there any way to delete local commits in Mercurial?
So I keep making a silly mistake in Mercurial. Often times, I’ll start work without doing an “hg pull” and an “hg update.” When I try to push my changes, I get an error. Is there any way to delete my local commits so I can avoid creating multiple heads, branches, etc? I just want … Read more
How do I delete all untracked files from my working directory in Mercurial?
Is it possible to delete all untracked files from my working directory? Let’s say I added a bunch of files to my working directory, didn’t add them via ‘hg add’ and now want to get rid of those new files entirely? I’m on windows, although I’m using PowerShell, so a combined solution is also possible … Read more
How to branch with TortoiseHG
I downloaded TortoiseHg 1.0 for evaluation. For the life of me I can’t figure out how to make a branch. It seems to understand branches (e.g. in its repository browser) but I just can’t seem to find a way to make a branch. This seems like such a fundamental capability since out of the often … Read more
How to do Mercurial’s ‘hg remove’ for all missing files?
I use this to remove a file from the repo: hg remove <full file path> What command can you use to do an hg remove on all files that have been deleted locally? By deleted locally, I mean those showing up with an ! when you do hg status. For adds, you can just do … Read more