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
5
votes
2 answers

How do you specify authentication information for Mercurial as part of Jenkins? (mercurial_keyring)

I've got my code in a Mercurial repository (secured with a self-signed certificate) and I'm trying to set up Jenkins to work with it. I've got the Mercurial plugin installed in Jenkins (pointing to an install of TortoiseHg on the Jenkins…
Peter Bernier
  • 8,038
  • 6
  • 38
  • 53
4
votes
2 answers

Mirgrating from mercurial Bfiles to largefiles

I have used mercurial's bfiles extension for some time and it works fine. The only problems are installation and the special "hg bfadd" command. Now that Mercurial 2.0 include the largefile extension I would like to switch. Can't find any tools or…
adrianm
  • 14,468
  • 5
  • 55
  • 102
4
votes
2 answers

In mercurial, how to see tags for only a set of revisions instead of all?

hg tags always shows all tags, so how can I get only the tags that point to a specific revision and all its ancestors? The real-world use case is that if I use local tags to designate features (or bug fixes) on changesets, and I need to find out the…
Geoffrey Zheng
  • 6,562
  • 2
  • 38
  • 47
4
votes
1 answer

Overload the pull command in a Hg extension

I am trying to debug a Mercurial extension. This extension adds some code that should be executed when a pull is performed. The original author setup this hook by changing the class of the repository object. Here is the relevant code (which is…
barjak
  • 10,842
  • 3
  • 33
  • 47
3
votes
1 answer

Splitting a mercurial commit with renames and edits into two commits (first rename, then edit)

Is there a way I can modify the history in mercurial in order to split one commit into two separate commits? The first of these should contain just renames/moves and the second should contain the edits. This would help with interoperability with…
Oenotria
  • 1,692
  • 11
  • 24
3
votes
2 answers

How can I set or modify the commit message from a mercurial extension?

I'm trying to modify this Mercurial extension to prompt the user to add a FogBugz case number to their commit message. Ideally, I'd like the user to just type in a number after being prompted and have it automatically appended to the commit…
Daniel Schaffer
  • 56,753
  • 31
  • 116
  • 165
3
votes
1 answer

Is there a way to get "hg extdiff" to include subrepositories?

I would like to configure Mercurial to be able to do something like "hg diff -S", but with an external diff tool (kdiff3, specifically). The logical way to do this would be something like hg extdiff -S -p kdiff3 However, this does not work because…
3
votes
2 answers

How do I make Mercurial require files to have documentation (Javadoc, etc) before pushing?

Is this something that is currently possible via extension or native functionality? Thanks, Brandon
bvulaj
  • 5,023
  • 5
  • 31
  • 45
3
votes
1 answer

Convert largefiles to normal files

I have a repository where the trunk does not contain any largefiles. In my working branch, I previously added and committed some binaries as largefiles. Now, I don't want them to be largefiles anymore. I haven't merged into trunk yet. I've tried…
3
votes
1 answer

Syncing SVN to Mercurial using svnsync & hg convert -- misses svn:externals?

I've created a Mercurial mirror of an SVN repository (using this tutorial: http://oreilly.com/opensource/excerpts/opensource-mercurial/migrating-to-mercurial.html). The sync works great, except I've noticed it's not picking up an external repository…
Jon L.
  • 2,292
  • 2
  • 19
  • 31
3
votes
1 answer

Where to install mercurial extensions so you do not have to specify their path in .hgrc?

Where to install mercurial extensions so you do not have to specify their path in .hgrc? The documentation says that you can put them in mercurial path, but that's not clear what it is. I want to install some extensions so they are available to…
sorin
  • 161,544
  • 178
  • 535
  • 806
3
votes
1 answer

How can I store persistent data with a mercurial extension?

I'm writing a mercurial extension and I need to store a small amount of metadata. This is a dumb example, but enough to get something like this to work: $ hg myextension --set a=2 $ hg myextension --get a 2 This data does not need to be copied if…
Philip
  • 4,128
  • 5
  • 31
  • 49
3
votes
2 answers

Mercurial: Pull changes from remote repository without public phase (non-publishing server, "abort: can't rebase immutable changeset")

Background Mercurial now has Phases which are a great mechanism to keep people from altering history that should not be altered. When a changeset is pushed to remote repository it is made public and can no longer be rebased. This is normally a good…
3
votes
2 answers

How to add a file from a branch to another branch in Mercurial?

I have two branches at my local repository: default and s1. At default branch there is a file called def.txt, among others. The s1 branch has files named as set3.txt, set1.txt, etc. I would like to add set1.txt of s1 branch to default branch as…
Cassie
  • 1,179
  • 6
  • 18
  • 30
2
votes
1 answer

hgrc progress extension not loading

The docs say all I need to do is add this: [extensions] progress = # shows progress bar for certain tasks but when I try to clone this repo it doesn't let me because the extension can't be found. It says it's packaged with 1.5 and later and I'm…
Ben
  • 60,438
  • 111
  • 314
  • 488