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
25
votes
7 answers

How to use Visual Studio (vsdiffmerge) as external diff tool in SourceTree for Mercurial?

I am using Mercurial for my source control and SourceTree to manage it. I want to use Visual Studio's built in diff and merge tool (vsdiffmerge) for comparing files however this is not working. I am currently using the following: Diff…
20
votes
4 answers

How to enable Mercurial extensions (such as mq)?

I have installed Mercurial from the Ubuntu package repository. However I don't know how to enable extensions (q* commands). How should I do that? The help shows that enabled extensions: style (no help text available) I want to enable mq and hgk.
mahmood
  • 23,197
  • 49
  • 147
  • 242
16
votes
3 answers

Installing Hg-Git on Windows 7 64bit

I am trying for a while installing Hg-Git addon to my Windows 7 Operating system I have crossed several difficulties like installing Python and other utilities described in this blog. I had even after this manual problems and could not install…
Byakugan
  • 981
  • 4
  • 15
  • 34
11
votes
2 answers

Mercurial convert changes line endings?

I'm using the Mercurial Convert extension to import data from a PerForce repository. The conversion appears to have worked correctly, but all the Windows line endings (CRLF) were replaced by unix endings (LF). Is there a way to get this extension to…
NBS
  • 111
  • 4
11
votes
1 answer

Simple Mercurial extension fails to import

I'm trying to follow the sample code for writing Mercurial extensions. This is a minimal sample, copied verbatim from the sample code: from mercurial import cmdutil from mercurial.i18n import _ cmdtable = {} command = cmdutil.command(cmdtable) I…
waldrumpus
  • 2,540
  • 18
  • 44
9
votes
2 answers

hg-git clone from Github gives "abort: repository is unrelated"

I have a project whose main (Mercurial) repository is on SourceForge, but there are clones on Bitbucket (Mercurial) and Github (Git). Now I have been using hg-git to push the Mercurial repository to Github and from what I understand of the…
0xC0000022L
  • 20,597
  • 9
  • 86
  • 152
8
votes
4 answers

Version-controlled extension configuration in Mercurial

Normally, I would enable extensions by adding the following to .hg/hgrc: [extensions] hgext.win32text= [encode] ** = cleverencode: [decode] ** = cleverdecode: However, I want this configuration to be versioned, i.e. part of the repository, so that…
Deestan
  • 16,738
  • 4
  • 32
  • 48
8
votes
2 answers

tortoisehg one step commit push - how to and where is the log file

Iam using win xp with Tortoisehg 2.3. I use bit bucket to backup my personal source code. (rarely for true version control, more as a source backup store). Right now I have to right click on my repo, select commit, then enter a commit message ( i…
7
votes
3 answers

Is there a Mercurial extension like svn propset?

I need to attach custom metadata to my source files that at tracked via Mercurial. The svn properties commands are exactly what I need. Is there a mercurial extension that provides commands similar to propset, propget, propdel, etc? If there isn't…
deft_code
  • 57,255
  • 29
  • 141
  • 224
7
votes
1 answer

Using the --quiet tag when extending Mercurial

I'm writing a Mercurial extension in Python and need to call the "Pull" command using the Mercurial API, but I want to suppress its output using the --quiet flag. In Hg terms, I want to execute the following code, but from within my extension: hg…
Michael La Voie
  • 27,772
  • 14
  • 72
  • 92
6
votes
2 answers

How do I configure Mercurial to not commit specific config files?

My team is switching to Mercurial. Our projects all have a config file (web.config or app.config, and a few bat files as well - we are a C# shop). These files need to be part of the repository. When a developer clones the repository, local…
Jason Jackson
  • 17,016
  • 8
  • 49
  • 74
5
votes
1 answer

Mercurial Extension with no/default options

Say I want an extension that I can execute as follows: hg sayhi I tried the following, but it tells me there are invalid arguments: def sayhi(ui, repo, node, **opts): """Says Hello""" ui.write("hi") cmdtable = { …
Andre
  • 1,107
  • 11
  • 22
5
votes
1 answer

Use Mercurial API to Get Changes to a Repository For a Given Changeset

How can I use the Mercurial API to determine the changes made to a repository for each changeset? I am able to get a list of files relevant to a particular revision, but I cannot figure out how to tell what happened to that file. How can I answer…
joshwbrick
  • 5,882
  • 9
  • 48
  • 72
5
votes
1 answer

Ways to write performance testing for Mercurial (hg) extension using Python

i wrote an extension for Mercurial e.g. hg dosomthing --rev 5 and I was wondering what is the right approach to writing performance test cases to monitor the performance of the extension from when its executed till its end! Ta:)
Simple-Solution
  • 4,209
  • 12
  • 47
  • 66
5
votes
2 answers

How do I safely disable/remove the largefiles directory from a mercurial repository?

In the past, I have been working with the largefiles extension in mercurial to save data together with the code I have been working on. I think this was a mistake and I would like to remove the "largefiles" directory (8GB). Our network user…
1
2 3 4 5 6 7 8