All Questions
Tagged with version-control mercurial
1,225
questions
2
votes
1
answer
31
views
How to uncommit one file in a series of commits in TortoiseHG (Mercurial)?
Hi,
I've just joined a new company, and they are using TortoiseHG for version control, but due to some IT restrictions have never got this setup properly (hopefully due to change soon). This means I ...
2
votes
1
answer
54
views
Finding changes to a block of text with mercurial
I have a text file that I'd like to track changes with. It's a file that stores values (as well as strings and arrays) and has the following format for its entries:
NAME: some_name
UNIT: some_unit
...
2
votes
0
answers
21
views
Command "hg log <dir_name>" works incorrect
I had to deal with VCS Mercurial.
I have repo with next structure:
.
..
.hg
.hgignore
.last_commit.txt
css
img
index.html
When i am using command hg log css/ i get next output:
changeset: 5:...
2
votes
0
answers
46
views
How to set permissions for hg init in Mercurial?
I am running Mercurial 6.2.3 on Ubuntu 20.04.6 LTS.
I can run hg init without any problems in the home directory.
However the same command on a mounted disk fails with the following error:
abort: ...
2
votes
1
answer
40
views
Mercurial .hgignore file on Windows
Using mercurial on Windows 10.
I have a .hgignore which reads so
syntax: glob
._site/**
When I run hg status I get
? .hgignore
? _posts\T1C.save
? _site\Tate\index.html
? _site\X1Ct\index.html
? ...
3
votes
1
answer
92
views
Why is the file I expect to be present missing after the final merge commit in Mercurial?
I ran into a situation in Mercurial at work where I would expect a file to exist, but it doesn't and I'd like to better understand why. I've put together a repro of the issue. In this repro I would ...
2
votes
2
answers
38
views
Mercurial - how to retrieve orig file after a revert?
I accidentally ran hg revert and lost all changes to my file foo.js. I see that a backup of the file exists as foo.js.orig. How can I add the orig file back so that I can reinstate my changes?
Update: ...
2
votes
1
answer
150
views
How can I filter tortoisehg (Mercurial) to not show branches containing part of a string?
Our Mercurial/HG repo has a fair amount of wip feature branches, and I would like to be able to create a cleaner view and filter out any branches containing part of a string.
I know I can specify ...
2
votes
1
answer
66
views
Mercurial: How can I change default tag message template?
I would like to use some prefix labels in commit messages to quickly identify the kind of commit when viewing the revision log, and for ability to quickly filter down the log.
Some of the prefixes I ...
1
vote
1
answer
91
views
What does it mean that Mercurial stores branch information as a permanent part of each commit?
My understanding is that Git is sort of a linked list when each node is a self-sufficient object that has all information about the commit such as differences between current and previous commits.
I ...
0
votes
1
answer
50
views
Is "ordering by hash" in Git slower than "ordering by pathname" in Mercurial?
I was interested to read this slide deck about Mercurial, and in particular the following slide:
Taking advantage of the FS
Avoiding seeks is critical for performance
Traversal order matters!
...
2
votes
0
answers
226
views
hg clone tag or branch
We are using the following command to clone repositories;
hg clone -u v1.0 \\server\abc\def my_repo
If the repository contains both a tag and branch that is named "v1.0" then the command ...
3
votes
0
answers
30
views
Avoid duplication while moving/renaming binary file in mercurial
The mercurial move/rename commands seem to be delete+copy operations, this balloons a repository when binary files are just renamed or moved. With for example
hg mv foo.bin bar.bin
hg rename bar.bin ...
2
votes
1
answer
129
views
Why is Mercurial matching a nonexistent local revision number?
Quick intro: In Mercurial there are two different ways to numerically refer to a changeset.
First, there's the node ID hash. It is global and functions like a git commit hash. It consists of 40 ...
2
votes
0
answers
59
views
How can I hg pull --rebase without touching my local feature branch?
I am working on a feature and had a few commits on a local feature branch we'll call /feature. I then remembered I had some unrelated changes on default I needed to push, so I switched over to default ...