tortoisehg

Cloning a read-write github repository using TortoiseHg

纵然是瞬间 提交于 2019-11-29 23:14:08
I'm trying to clone my personal fork on github using the git+ssh protocol with TortoiseHg. It's giving me a rather strange error. Here is the command hg clone git+ssh://git@github.com:myusername/thefork.git This is after I have installed the hg-git module and it works just fine to clone using the git:// syntax. But I believe it's having trouble with the ssh. The error I'm getting is this. importing Hg objects into Git [Error 2] The system cannot find the file specified I have tried adding manually the ssh command into the mercurial.ini file like this [ui] username = email@address.com ssh="C:

Undo an hg push (backout?)

淺唱寂寞╮ 提交于 2019-11-29 22:09:48
I made a big oops, and could use some help undoing it. We have two repositories-a fairly stable repository, and a repository we're working on changes in. I just made a defect fix in our stable repository, and was moving it up to the working repository. I pulled from the stable repository, merged, then accidentally pushed to the stable repository. The stable repository now looks like this: *merge | \ | \ | *b *a | | / *c where a is the commit that should be the tip of the stable repository, b is all the stuff that we've done in the development repository, and c is the point we branched the

Difference between cloning and copying in Mercurial

拈花ヽ惹草 提交于 2019-11-29 11:13:38
问题 Is copying the .hg directory to another directory the same as cloning in Mercurial (using TortoiseHg although I think that's irrelevant) or does the cloning command in Mercurial do something special during that process? 回答1: It's almost the same. Cloning does a few things different, none of which are required, but some of which are cool: clones get a working directory too (which you can avoid with -U) clones get the source repo set as default for push/pull in the .hg/hgrc file clones can get

Would like to create some defaults for my .hgignore files in TortoiseHG/Mercurial

安稳与你 提交于 2019-11-29 09:24:42
问题 I'd like to make it so that every time I create a new repository, certain filters automatically get added to my .hgignore files by default. For example, for C# projects, I would like these to be added: glob:bin/* glob:obj/* Is this possible? How? If it can't be automated, is it at least safe to copy the .hgignore file from one repository to another? 回答1: I use ~/.hgignore and just cp that into my repo. In my ~/.hgrc: [ui] ignore.other = ~/.hgignore I just put the really obvious stuff in that

How to best configure a central repository/multiple central repositories for Mercurial?

送分小仙女□ 提交于 2019-11-29 07:03:10
问题 I am new to Mercurial and trying to figure out if it could replace SVN. Everyone I work with has used SVN, CVS and VSS (shiver), so this could be quite a large change. I have been very interested after reading about its merge and branch capability, but have a few reservations. We are currently on SVN, and have one central repository. From my reading, it seems as though there is no ONE central repository for all projects when using Mercurial. NOTE: We consider each project a separate logical

How to graft with tortoisehg

大城市里の小女人 提交于 2019-11-29 05:33:04
I heard of the new hg graft feature, it's a useful feature to apply certain changesets from a branch to another. Is it possible to use it from tortoisehg? TortoiseHG 2.8 Selected changeset (r64) will be grafted to local (active) branch "default", because Working Dir parent is r66 来源: https://stackoverflow.com/questions/16898906/how-to-graft-with-tortoisehg

Getting readable diff displays in Mercurial on Unicode files (MS Windows)

北慕城南 提交于 2019-11-29 01:55:21
问题 I'm trying to store some Windows PowerShell scripts in a Mercurial repository. It seems the PowerShell editor likes to save files as UTF-16 Unicode. This means that there are lots of \0 bytes, which is what Mercurial uses to distinguish between "text" and "binary" files. I understand that this makes no difference to how Mercurial stores the data, but it does mean that it displays binary diffs, which are kind of hard to read. Is there a way to tell Mercurial that these really are text files?

Undo an hg push (backout?)

こ雲淡風輕ζ 提交于 2019-11-28 18:31:06
问题 I made a big oops, and could use some help undoing it. We have two repositories-a fairly stable repository, and a repository we're working on changes in. I just made a defect fix in our stable repository, and was moving it up to the working repository. I pulled from the stable repository, merged, then accidentally pushed to the stable repository. The stable repository now looks like this: *merge | \ | \ | *b *a | | / *c where a is the commit that should be the tip of the stable repository, b

How to branch with TortoiseHG

佐手、 提交于 2019-11-28 15:29:12
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 touted benefits of DVC is the lightweight branching. I Googled around and couldn't find much discussion of this topic (at least for recent versions) so I have to assume I'm missing something, right? Update: So I flagged Chad Birch's answer below to answer the "new branch" issue. As he correctly points out,

Mercurial marks unmodified files as modified in working directory and fails to revert

余生长醉 提交于 2019-11-28 01:56:43
Our team uses TortoisHg 2.0.5 on Windows and after refreshing file list in working directory it sometimes (at least once a day :(( ) shows a list of unmodified files as modified. Manual comparison doesn't show any changes in code, line breaks are also equal. Reverting of these "fantom" files causes no result. There a two way how we deal with this problem: Turning off eol extension and reverting the files, Manually removing the files and update them from the head revision. It's really annoying to do this every day (twice ...three times... per day), especially on large changeset! Please help to