tortoisehg

What happens to original changesets after an Hg “history rewrite” (histedit, commit --amend), and how can they be recovered?

末鹿安然 提交于 2019-12-08 04:24:22
问题 In Git - with it's immutable changeset objects and mutable refs - I know that the original commits remain, which gives me a warm fuzzy feeling after an 'oops' "history rewriting" moment. For example, after a "history rewriting" git rebase the original changesets (cbe7698, 09c6268) are still there and a new changeset (08832c0) was added. I can easily restore/access the other changesets until such a time as they are pruned. $ git log --oneline --graph --decorate $(git rev-list -g --all) *

Mercurial - How do you export your repo's source to a production site?

只愿长相守 提交于 2019-12-08 04:18:00
问题 I've tried using archive in Tortoise HG by opening my repo change log. This doesn't seem to be anything like SVN's export command, where I can simply export a remote repository to the current directory. I use this to get a clean copy of my source for production (without notes and repository data). How can I do something like this in HG? Or, should I just use clone and deal with the repo related data manually? BTW, I need to do this all via command line since I'm not going to be using Tortoise

Mercurial - How do you export your repo's source to a production site?

独自空忆成欢 提交于 2019-12-08 03:50:29
I've tried using archive in Tortoise HG by opening my repo change log. This doesn't seem to be anything like SVN's export command, where I can simply export a remote repository to the current directory. I use this to get a clean copy of my source for production (without notes and repository data). How can I do something like this in HG? Or, should I just use clone and deal with the repo related data manually? BTW, I need to do this all via command line since I'm not going to be using Tortoise HG on my Linux server. Any help is much appreciated. As other responses have pointed out hg archive

Why is this C# code not working? I am trying to read the output of a shell to TortoiseHG (Mercurial)

China☆狼群 提交于 2019-12-07 21:13:58
问题 I am trying to get mercurial to run in a shell from my C# wpf application. My purpose is to retrieve the output into a string so that I can parse it. Unfortunately for me, it seems that hg.exe (from tortoiseHg), does not return anything via the code below. Other .exe's appear to work, as seen in the comments below; My Code is below; ` string workingDir = ""; string filename = ""; string param = ""; //This works workingDir = System.IO.Path.GetDirectoryName(System.Reflection.Assembly

Mercurial - log last month changes

廉价感情. 提交于 2019-12-07 11:36:22
问题 I'm using TortoiseHG with mercurial and I have to log my changes from last month. It has to be something like this in GIT: git log --since="2015-03-01" -p --author='me' > C:\history_3.log Can you tell me how can I do it (using tortoise gui or terminal)? 回答1: You want to make use of mercurial's revsets, a very powerful language to filter the revisions listed: hg log -r"author('YOURNAME') and date('>2015-03-01')" or alternatively for the last 30 days: hg log -r"author('YOURNAME') and date('-30'

Applying hgignore file to already committed file Mercurial repo

雨燕双飞 提交于 2019-12-07 06:39:04
问题 Trying to do something similar to here: Applying .gitignore to committed files Where you apply the new hgignore file to the already committed files. I have node_modules folder already committed with thousands of files and I'd like to remove it by using the new hgignore file. I can't find anything online for it to work on a Mercurial repo, any ideas? Thanks! 回答1: Edit .hgignore to match files you want to ignore hg forget "set:hgignore()" and commit See in action: https://asciinema.org/a

Using subrepositories with bitbucket and ToritoiseHg

感情迁移 提交于 2019-12-07 05:26:52
问题 I have subrepository structure as following in TortoiseHg: /MainFolder/ /MainFolder/SubFolder1 /MainFolder/SubFolder2 MainFolder is a private repository on bitbucket SubFolder1 is a private repository on bitbucket SubFolder2 is a private repository on bitbucket The file .hgsub inside MainFolder looks like this: SubFolder1 = SubFolder1 SubFolder2 = SubFolder2 The file .hgsubstat inside MainFolder also have valid guids and subrepository names. The problem is whenever I try to push to bitbucket

Remove a revision in TortoiseHG and Mercurial

断了今生、忘了曾经 提交于 2019-12-07 03:43:33
问题 In my repository I needed to revert to an older revision. I did reverting and made the changes I needed to. How do I push the new revision upstream? I was on rev 17 when I needed to revert back to rev 13. Now that I've made my changes, I'm on rev 18. Thing is, when I go to push these changes up (I'm using TortoiseHG), I get an error "abort:push create new remote head . I don't want to do a merge. Do I want to do a force with the --force command or do I need to delete rev 14-17. If I need to

TortoiseHg and multiple branches in one repo

喜你入骨 提交于 2019-12-06 18:50:08
问题 I really can't figure it out. I'm new to Mercurial and TortoiseHg. Read alot of docs and still cant find answer. I know that one way of branching is making a copy. Thats clear but there is another way called "named branches" but this is one thing i can't understand. For example i I have new repo first branch is called "default". Then i added 3 branches called "test1...3". Now in repo browser i have tree like this: * test3 | * test2 | * test1 | * default how to achieve something like this: *

Cannot push to Hg project on Codeplex

℡╲_俬逩灬. 提交于 2019-12-06 18:09:44
问题 I am trying to push changes to my codeplex project that is using mercurial. I receive the following error: abort: HTTP Error 500: abandoned transaction found - run hg recover I have tried on my home PC and I get the same error. I run "hg recover" and it says: no interrupted transaction available I know there is another simiar question here on SO. Some folks on the Net reckon one should run the recovery on the remote repository. I cannot do that. I have mailed the codeplex folks but haven't