mercurial Questions
8
Solved
I have a pair of commits that should really be just one. If I was using git, I would use:
git rebase -i <some-commit-before>
and then squash them.
Can I do that in mercurial? If so, how?
...
Chancelor asked 12/11, 2009 at 21:40
4
Solved
Say I type hg add in Mercurial, and there a bunch of untracked files in my working directory that are not ignored. What is the easiest way to un-add all those files without explicitly typing the na...
9
Solved
There is a commit that just didn't work, so I want to abandon it without deleting it from history.
I have updated from an earlier revision and committed, thus creating a new head.
I don't have ...
Weekend asked 10/9, 2010 at 20:52
5
Solved
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 fin...
Eckardt asked 1/4, 2010 at 19:2
2
Not much to add to the title. hg branches --help --verbose doesn't show anything useful, although I'm not sure if the user can be shown via the --template option (in this case tools like grep could...
Housebreaker asked 23/4, 2019 at 13:51
8
Solved
Is it possible to browse the source code of OpenJDK online, just like I can do with SourceForge's projects? I never used Mercury before, so I felt confused.
(Note: I don't want to download the sou...
2
AFAIK git's default merge strategy is "recursive" which means when more than one "common ancestor" ends up being a "good candidate", git will merge them and create a new "virtual common ancestor" f...
4
Solved
This is almost exactly a duplicate of Examining a single changeset in Mercurial, and without doubt a duplicate of another question I can't find on SO through Google alone.
I'm looking back throug...
Triumphant asked 21/3, 2011 at 10:54
1
The rebase extension to mercurial provides functionality similar to git's rebase.
Letting the rebase execute takes something like 4 minutes (~240 s) for 100 commits.
In my imagination this should...
Plausive asked 28/3, 2019 at 2:11
2
Solved
I tried doing a simple commit through my wrapper library for Mercurial, using the simple text of Unicode:æøåÆØÅ as my commit message. This is written to a text file and given to Mercurial with the ...
1
I'm looking for a solution very close to the usage with mercurial, as seen below. I have tried git add -p, git add -e, git add --interactive, tig and few others.
I've also looked at this and this....
6
Solved
I have created a public repository on bit bucket website. I can run the clone command from outside the office network (LAN).
But it is not working inside the office network. I am suspecting it is...
1
I'm doing a Mercurial rebase (induced by hg histedit) and I reach a conflict where I realize, actually, I should have dropped this patch. In git, I would have just done git rebase --skip. Is there ...
Detinue asked 31/1, 2019 at 18:42
2
Solved
I committed and pushed my changes business as usual and packed my laptop. As I docked it at the office and opened IntelliJ IDEA again. All the project classes were shouting red. As in No classes we...
Airdrop asked 28/11, 2016 at 13:5
6
Solved
When I run hg commit, Mercurial generates a file for my commit message that looks like this :
HG: Enter commit message. Lines beginning with 'HG:' are removed.
HG: Leave message empty to abort com...
Inroad asked 27/11, 2010 at 13:18
2
Solved
In my project's .hgignore, I want to exclude /static/ (i.e., the static folder at the root of the directory), but not /templates/static/. How would I configure .hgignore to allow this?
3
I have accidentally run hg strip, and deleted a stack of commits. I have not done anything in the repo since. Is there a way for me to bring back this stack of commits, to undo the hg strip I just ...
8
Solved
I want to know how to simply publish over http = much like Mercurial's hg serve! On the Windows/work box do this:
git serve
and then on the Linux box SIMPLY go:
git clone http://project projec...
0
I've found a way to generate a semver-compliant version string from an appropriately-tagged Mercurial repository using hg log with a template. It looks like this:
hg log -r . --template "{latestta...
Cocke asked 22/2, 2019 at 9:24
5
Solved
Let's say that I have a named branch 'B1' which I'm doing feature development on.
I am at a good stopping point before a demo though not done with the feature so I:
hg up default
hg merge B1
hg ci...
3
I'm trying to migrate a mercurial repository to git, but the problem is that the mercurial repository has subrepositories (some with branches), and lots of merges and branches itself. I'd like the ...
Headstream asked 28/5, 2015 at 2:8
4
Solved
As a user, I usually use hg st to check the status of a repo, and verify that it is in a clean state, with no modified files.
Here I would like to do this programmatically. I know I can also use h...
6
Solved
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...
3
Solved
Many times it happens that I have few commits on my local Hg repository which I don't want to push and sometimes I want to remove the local branch altogether. But I cannot rollback more than one co...
2
Solved
Using TortoiseHg Synchronize, clicking "Pull" pulls down the 2nd most recent revision.
At the bottom of the Synchronize interface is a button, "Update to branch tip." Clicking this button pulls d...
Rogovy asked 4/11, 2009 at 21:27
© 2022 - 2024 — McMap. All rights reserved.