Commit Graph

4141 Commits

Author SHA1 Message Date
Vadim Gelfer
8ea7dbe8d0 notify: add 'to' header to message. 2006-05-08 12:27:30 -07:00
Vadim Gelfer
a82c03a7e0 notify extension: generate right number of diffs 2006-05-08 11:16:09 -07:00
Vadim Gelfer
41eb4e2c6e reverse sense of return value from python hooks.
old scheme (False/None/0/'' == fail) made coding style
unnatural, did not allow use of mercurial commands as hooks.

new scheme (False/None/0 == pass) is pythonic, does not require peculiar
"return True" at ends of hooks, allows hooks like this:

[hooks]
# update working dir after push into this repo
changegroup.update = python:mercurial.commands.update
2006-05-08 10:59:58 -07:00
Vadim Gelfer
dd7442a4f4 merge with crew. 2006-05-08 08:04:46 -07:00
Vadim Gelfer
ef1e3759c2 add email notification hook. hook written in python.
email headers and body can be customized using template code.
2006-05-04 15:07:35 -07:00
Bryan O'Sullivan
f8888fa454 patch queue: notify.patch 2006-05-04 12:25:10 -07:00
Vadim Gelfer
f906ed16e7 move mail sending code into core, so extensions can share it.
document hgrc settings used.
2006-05-04 12:23:01 -07:00
Vadim Gelfer
c40534f466 move stringio class from bugzilla extension into templater module. 2006-05-04 12:02:32 -07:00
Vadim Gelfer
7ff45befff rename [patchbomb] section to [email] section in hgrc. old name still ok. 2006-05-04 12:00:45 -07:00
Vadim Gelfer
901f2c1543 define standard name for base url to use when printing hgweb urls.
useful for bugzilla integration, email notifications, other stuffs.
2006-05-04 11:32:00 -07:00
Vadim Gelfer
de8fc55e1f only import mysql module if hook used. 2006-05-03 14:56:07 -07:00
Vadim Gelfer
747e07d661 add bugzilla integration hook. example of writing hook in python.
hook updates bugzilla bugs when it sees commit comments that mention
bug id, such as "i fixed bug 77".

only bugzilla 2.16 supported yet, but easy to extend. bugzilla versions
have different schema, i have not used later than 2.16.
2006-05-03 14:40:39 -07:00
Thomas Arendsen Hein
412719cc68 Better help for mq: Corrected synopses, get qcommit options from commands.py. 2006-05-03 11:57:14 +02:00
Thomas Arendsen Hein
092be2daa9 Use better names (hg-{usage}-{random}.{suffix}) for temporary files. 2006-04-30 21:11:22 +02:00
Alexis S. L. Carvalho
2995553eee Fix hg qdiff <file> 2006-04-19 11:41:27 -07:00
Vadim Gelfer
fba6f04a5f mq: do not fail if directory to create exists 2006-04-18 14:56:54 -07:00
Edouard Gomez
f6c00cf208 Register qversion as a non repository related command 2006-04-04 16:35:20 -07:00
Vadim Gelfer
e08da24689 patchbomb: ignore exception if pager quits. 2006-03-09 16:26:49 -08:00
Thomas Arendsen Hein
c6c1b2a975 Removed script header from mq.py 2006-03-08 19:31:54 +01:00
Thomas Arendsen Hein
c8d9d88df5 Moved bisect extension to hgext folder. 2006-03-08 19:30:30 +01:00
Thomas Arendsen Hein
c2f8042cfe Fix mq's usage of opener, which don't allow absolute paths now. 2006-03-07 22:41:24 +01:00
Vadim Gelfer
316fdadb4c only put numbers on patches if > 1 patch. 2006-03-06 21:06:53 -08:00
Lee Cantey
72700213c5 Patchbomb only sends introductory message [0 of N] if there are multiple patches. 2006-03-06 21:05:18 -08:00
Thomas Arendsen Hein
ed3a95a497 Create local ui object per repository, so .hg/hgrc don't get mixed.
This is needed for hooks, but may be important for other settings, too.
Fixes issue113, also integrated push-hook-lock.sh as a test case for this.
2006-03-06 17:47:41 +01:00
Vadim Gelfer
30f504a884 get patchbomb extension to use demandload. speeds up hg startup by 50%. 2006-03-02 11:38:39 -08:00
Thomas Arendsen Hein
47314a5f51 Whitespace, tab and formatting cleanups, mainly in mq.py 2006-02-28 23:25:34 +01:00
mason@suse.com
e69cd5f3b2 Add mq extension 2006-02-28 12:25:26 -06:00
Johannes Stezenbach
ebb84bfa68 add --mbox output to patchbomb
add option to save generated mails in an mbox file for later
processing with formail, instead of sending them directly
2006-02-06 17:34:39 -06:00
Thomas Arendsen Hein
5402a5485e Removed executable bit from patchbomb extension. 2006-02-03 11:43:49 +01:00
Benoit Boissinot
f35a4401dc extension gpg.py: really raise the exception in case of invalid data 2006-02-02 19:22:27 +01:00
Benoit Boissinot
7993682c87 fix an exception in gpg.py with multiples sigs for the same cset
- silly error, do not overwrite the variable we use for iterating
- correct 'hg help sign'
2006-02-01 20:20:27 +01:00
Benoit Boissinot
3c3d3f47d2 fixes for gpg.py extension
- add copyright and license
- add i18n
- add 'sigs' command behaving like 'hg tags'
- change 'role' to 'comment' and output it only if there is one
- refactoring
2006-02-01 19:37:26 +01:00
Thomas Arendsen Hein
6e4eeabc49 Added missing space in output of gpg.py 2006-02-01 12:55:01 +01:00
Vadim Gelfer
774f42f23f add documentation for email command. 2006-01-31 08:14:23 -08:00
Vadim Gelfer
fb86f22d15 add _ to several strings 2006-01-31 08:08:43 -08:00
Vadim Gelfer
5ddda972ae turn patchbomb script into an extension module.
command name is now 'hg email'.
2006-01-31 08:06:35 -08:00
Thomas Arendsen Hein
f5ef5dad07 Renamed c, a, d, u to modified, added, removed, unknown for users of changes() 2006-01-12 13:35:09 +01:00
Benoit Boissinot
799c1157bf gpg signing extension for hg
the principle is almost the same as how tags work:
.hgsigs stores signatures, localsigs stores local signatures

the format of the signatures is:
nodeid sigversion base64_detached_sig

sigversion 0 signs simply the nodeid (maybe we would like
to sign other things in the future).

you can associate fingerprints with roles in hgrc like:
[gpg]
fingerprint_of_a_key_without_spaces = release
fingerprint_of_a_key_without_spaces = contributor, testing

the key used for signing can be specified on the command line or
via hgrc (key =)

thanks to Eric Hopper for testing and bugfixing
2005-12-16 11:12:08 -06:00
Matt Mackall
3e810c442d Re-add hgext/__init__.py 2005-09-29 12:49:01 -07:00
mpm@selenic.com
d6595522d1 Merge with BOS 2005-09-22 09:39:05 -07:00
Bryan O'Sullivan
2f99b73208 Rename mercurial.ext to hgext. 2005-09-21 15:17:24 -07:00