How can I ignore everything under a folder in Mercurial
Alternately: syntax: glob bin/**
Alternately: syntax: glob bin/**
Starting with Git 1.7.0, there is a special syntax that allows you to generically refer to the upstream branch: @{u} or @{upstream}. To mimic hg incoming: git log ..@{u} To mimic hg outgoing: git log @{u}.. I use the following incoming and outgoing aliases to make the above easier to use: git config –global alias.incoming … Read more
Here’s my standard .hgignore file for use with VS2008 that was originally modified from a Git ignore file: # Ignore file for Visual Studio 2008 # use glob syntax syntax: glob # Ignore Visual Studio 2008 files *.obj *.exe *.pdb *.user *.aps *.pch *.vspscc *_i.c *_p.c *.ncb *.suo *.tlb *.tlh *.bak *.cache *.ilk *.log *.lib … Read more
Either put a hgrc in the .hg directory in your repo or put a .hgrc (hgrc for Windows) file in your home dir (then it covers all your projects) In the file you should write [ui] username = Your Name <your@mail>
Those steps should be able to be shortened down to: hg pull hg update -r MY_BRANCH -C The -C flag tells the update command to discard all local changes before updating. However, this might still leave untracked files in your repository. It sounds like you want to get rid of those as well, so I … Read more
Update your repository to the head with the revision that you want to forget about, then use hg commit –close-branch to mark that (anonymous) branch as closed. Then update to the head of the branch that you do want, and continue working. You can still see the closed branch if you use the -c option … Read more
MercurialEclipse Update site: https://bitbucket.org/mercurialeclipse/update-site/raw/default/ Installation manual As stated below (in comments) the name is MercurialEclipse. The name HgEclipse was a fork that Intland did and was later “merged” back again with MercurialEclipse, which moved around a bit between the current site, Google code and javaforge.com.
There’s a new git-remote-hg that provides native support: Bridge support in Git for Mercurial and Bazaar Just copy git-remote-hg to your $PATH, make it executable, and that’s it, no dependencies (other than Mercurial): git clone hg::https://www.mercurial-scm.org/repo/hg/ You should be able to push and pull from it as if it was a native Git repository. When … Read more
Both existing answers suggest storing your username and password unencrypted in plain-text, which is a bit of a no-no. You should use the Keyring extension instead, as it has been specifically designed for securely saving authentication passwords. It already comes bundled with TortoiseHg, so all you have to do is activate it by writing the … Read more
VonC has the answer you’re looking for, the Rebase Extension. It is, however, worth spending a second or two thinking about why neither mq nor rebase are enabled by default in mercurial: because mercurial is all about indelible changesets. When I work in the manner you’re describing, which is nearly daily, here’s the pattern I … Read more