Questions tagged [mercurial-extension]

Mercurial extension is a mechanism to customize and extend functionalities of the Mercurial DVCS.

Mercurial extension is a mechanism to customize and extend functionalities of the Mercurial DVCS.

More information:

109 questions
2
votes
1 answer

Mercurial API: How can I get the coming content of the file which was pulled but has not been updated yet?

I'm a complete noob at Mercurial API and Python, but I'm trying to write a useful extension for myself and my colleagues now. Let's assume I have a repository which contains some code and an auxiliary file .hgdata. The code and .hgdata are both…
Igor Soloydenko
  • 11,067
  • 11
  • 47
  • 90
2
votes
1 answer

Backout unwanted changes and make a patch out of them

I'am collaborating with someone on remote repo. We realized that changes I made should be removed out of repo. But those changes are in many changesets and mixed with someone's changes. We decided to remove my changes just before I commit another…
Memke
  • 684
  • 1
  • 7
  • 24
1
vote
2 answers

Is it possible to add a mercurial or git extension inside a repository?

If the question is not clear enough, I will try to explain it: I am wondering if you can add the extension code/script to your repository and enable it inside .hg/hgrc with a relative path. If possible, this should enable you to distribute…
sorin
  • 161,544
  • 178
  • 535
  • 806
1
vote
1 answer

How do I add a command option to an existing command in a Mercurial extension?

I'm working on an extension which includes a pre-commit hook. I'd like to be able to receive a new option within my hook. However, if I add it using the cmdtable example from the documentation, substituting a reference to the existing commit…
Daniel Schaffer
  • 56,753
  • 31
  • 116
  • 165
1
vote
0 answers

How to use `hg amend` with HgGit to avoid `unknown revision` errors

Whenever I use hg amend or other commands that change history (for example hg rebase -s ... -d ...), certain commands, including hg push start to fail with abort: unknown revision error: $ hg push -B my-branch pushing to…
Petr
  • 62,528
  • 13
  • 153
  • 317
1
vote
0 answers

Is it possible to switch repository in Mercurial Command Server protocol?

I'm batch processing lots of Mercurial repositories and I want to save CPU time by avoiding fork. I can use internal Mercurial API: https://www.mercurial-scm.org/wiki/MercurialApi to create objects operating on several repositories simultaneously in…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
1
vote
1 answer

How can I access the information associated to an object from a Mercurial plugin?

I am trying to write a small Mercurial extension, which, given the path to an object stored within the repository, it will tell you the revision it's at. So far, I'm working on the code from the WritingExtensions article, and I have something like…
Geo
  • 93,257
  • 117
  • 344
  • 520
1
vote
1 answer

How to split a patch into two parts (with pbranch)?

I am working on a mercurial repository and using pbrach for working on a set of patches. Assume I have two files A and B, and two patches patchA (modifies A) and patchAB (modifies A and B). The pgraph looks like this: o patchAB | @ patchA | o …
mr_georg
  • 3,635
  • 5
  • 35
  • 52
1
vote
0 answers

TortoiseHg 'No space left on device' error while commiting to NAS device

I have a number of large files about 5GB each, they are all on a remote NAS device. I want to commit them, so I created a repo on the NAS device, where the my files are, that went well, I made sure TortoiseHg had large files extension ticked, and I…
1
vote
1 answer

Edit commits in HG repo & mark as "closed"

I'm currently dealing with the fallout from BitBucket dropping HG support. We're going to be giving hg-git a try because, while my preference is self-hosting, my boss isn't quite mad enough at Atlassian to move away from BB yet. Taking this…
Lovethenakedgun
  • 731
  • 6
  • 22
1
vote
0 answers

Tracking bugs locally with TortoiseHg

Is there any way to track issues/bugs with TortoiseHg? There are a lot of extensions for online bug trackers (Trac, Jira etc) but is there any local solution? I have found bExtension useful but it lacks a GUI. On the other hand bugzilla seems…
T81
  • 171
  • 1
  • 3
  • 12
1
vote
1 answer

"hg purge" deleted tracked file

I know it is strange but I was updating my testcases and thought of removing all the untracked files from the testcase so ran hg purge, but apart from deleting untracked file it deleted tracked files for 230+ testcases too. Is there any way to…
BitMask
  • 314
  • 2
  • 9
1
vote
1 answer

Adding hg strip to hgrc config file

I have added strip extension hgrc config. (MAC OS) cd ~ nano .hgrc under [extension] added line: strip = Even vagrant restart or mac restart didn't help, the command is still not recognizable. hgrc file: [ui] # name and email, e.g. …
PKDidiyy
  • 19
  • 4
1
vote
2 answers

How can I backout of a Mercurial changeset in a working directory and not commit it to the repo?

Backout works by applying a changeset that's the opposite of the changeset to be backed out. That new changeset is committed to the repository, and eventually merged. https://www.mercurial-scm.org/wiki/Backout How can I backout without…
jestro
  • 2,524
  • 4
  • 27
  • 46
1
vote
0 answers

hg notify gives "interrupted" on push

I have a tortoise repository on my local machine. I would like to send notification mails on push. On pushing the changes, all that gives is the message "interrupted!". I could not figure out the exact issue. Can someone help to get know more…