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
1
vote
0 answers

Is it possible to write a Mercurial to extend standard commands?

I have been looking into writing an extension for Mercurial and have found this documentation. From what I can see, you can create new commands within the Mercurial environment but what I was hoping to achieve however, was to override an existing…
Toby Smith
  • 1,505
  • 2
  • 15
  • 24
1
vote
1 answer

mercurial extensions: efficient templatekeyword implementation

I'm writing a mercurial extension, but am finding that template rendering is rather slow. I was originally using cmdutil.rendertemplate(), however, it seems that has to reparse the template string every time, which is rather slow. When switching to…
Richard Levasseur
  • 14,562
  • 6
  • 50
  • 63
1
vote
1 answer

Upgrade to TortoiseHg 2.0 breaks svn

I just upgraded to TortoiseHg 2.0 and now my Push to / Pull from svn (I have MercurialSvn extension enabled) fails with no compatible bindings available: Subversion 1.5.0 or later required, but no bindings were found Subvertpy 0.7.4 or later…
Redeemed1
  • 3,953
  • 8
  • 38
  • 63
1
vote
0 answers

How to configure Notify extension in mercurial

I have seen many posts which are not helping. I can see that hook is getting called but not able to see any output in the output log when I set Test="True" I followed many posts mentioning to make changes in hgrc file, but I'm wondering how changing…
Vinay
  • 577
  • 6
  • 17
1
vote
1 answer

How do I install the hg-git plugin on Debian Stretch?

Debian Jessie, as well as sid, have a mercurial-git package which contains the hg-git plugin. However, this package was (auto-)removed from Debian Stretch to to a release-critical bug. But - I need it installed and running. Surely this should be…
1
vote
0 answers

How to use internal:other merge tool with mercurial largefiles extension

When rebasing a revision in mercurial one can choose to resolve any merge conflicts by always choosing the "other" (source) version of a file using: hg rebase -s source_rev -d dest_rev --tool internal:other In this case, the rebase needs no user…
ARF
  • 7,420
  • 8
  • 45
  • 72
1
vote
1 answer

Mistake in Mercurial Extdiff Configuration?

I use Mercurial with the Extdiff extensions to diff Simulink (.slx) files with Mathworks' diff tool. To setup the Extdiff extension I followed the instructions on this website. Diffing Simulink (.slx) files works really great. However (and this…
snowflake
  • 56
  • 7
1
vote
1 answer

How to extend another extension's command in Hg?

I want to add additional option to the hg convert command, which is provided by internal extension hgext.convert. I try to do the following in my __init__.py: def extsetup(ui): entry = extensions.wrapcommand(commands.table, 'convert',…
abyss.7
  • 13,882
  • 11
  • 56
  • 100
1
vote
1 answer

Mercurial: Unable to unshelve shelved changes

It seems like ShelveExtension only shelves your modified files leaving untracked or deleted. I am new to Mercurial and coming from git so for me this is not expected. Even bigger problem I am not able to hg unshelve with what I assume is an error…
Mr. L
  • 3,098
  • 4
  • 26
  • 26
1
vote
1 answer

Disabling Mercurial Hooks For Specific Repo Sources

On my computer I have some Mercurial commit hooks that run on every commit that make sure I branch correctly and do a few other things. But I only need these for work projects. Here are the hooks implemented in my ~/.hgrc file: [hooks] # This hook…
Patrick
  • 3,302
  • 4
  • 28
  • 47
1
vote
1 answer

hgwatchman throws warning when trying to clone

I installed "watchman" and "hgwatchman" in my linux box. Configured them following the https://bitbucket.org/facebook/hgwatchman link. When I tried to clone a hg repo, I get the below warning: warning: watchman unavailable: watchman socket discovery…
prabhugs
  • 742
  • 7
  • 20
1
vote
1 answer

Not able to perform an hg push in Windows using mercurial_keyring extension, TortoiseHg and Kiln

I'm having some unexplained difficulty using the mercurial keyring extension with TortoiseHg (v2.11.1 64-bit) in Windows Server 2008R2. The extension appears to be enabled (mercurial_keyring entry is present in mercurial.ini as well as the repo…
1
vote
1 answer

Fold outgoing changesets into a single changeset in mercurial

I want to checkpoint/commit stages (locally) using mercurial, knowing well that these changes would break the build if I pushed them to the remote repository. What I would like to do is fold/collapse/accumulate these changesets into a single…
san
  • 4,144
  • 6
  • 32
  • 50
1
vote
1 answer

Hg: extension search path

I want to use a special extension, but for certain reasons I want to avoid to modify my Mercurial installation and touch existing Mercurial.ini or .hg/hgrc files. Usually, I invoke a command like hg --config…
Thomas S.
  • 5,804
  • 5
  • 37
  • 72
1
vote
1 answer

How to add Mercurial churn extension in TeamCity

I'd like to generate the hg churn report in my TeamCity build, but the Churn extension is not enabled by default in Hg. On my local box, I just add churn to the [extensions] section of mercurial.ini. Where do I put a system wide mercurial.ini so…
slolife
  • 19,520
  • 20
  • 78
  • 121