Martin Geisler
750183bdad
updated license to be explicit about GPL version 2
2009-04-26 01:08:54 +02:00
Matt Mackall
de487eacda
ui: print_exc() -> traceback()
2009-04-26 16:50:44 -05:00
Alexander Solovyov
86b994e311
extensions loading: don't fail if path to extension ends with a '/'
2009-04-01 12:11:14 +03:00
Alexander Solovyov
609db13729
ability to load hooks from arbitrary python module
2009-03-27 01:28:09 +02:00
Peter Arrenbrecht
ce6e853a0b
cleanup: drop enumerate() when index is not used
2009-03-23 13:13:11 +01:00
Matt Mackall
7f3bf9b19d
error: move SignalInterrupt
...
now derived from KeyboardInterrupt to simplify catches
2009-01-12 11:48:05 -06:00
Matt Mackall
648df6f0b1
dispatch: generalize signature checking for extension command wrapping
2008-11-18 16:02:14 -06:00
Dirkjan Ochtman
367d64160c
extensions: copy __module__ for wrapped commands
2008-11-14 14:17:42 +01:00
Matt Mackall
26ddb1a665
extensions: add wrapping functions
2008-10-22 17:34:50 -05:00
Benoit Boissinot
7ba2d57a89
Do not try to load extensions twice (issue811)
2008-09-09 14:43:12 +02:00
Joel Rosdahl
4f8012378a
Remove unused imports
2008-03-06 22:23:41 +01:00
Jesse Glick
5a5b96808a
When failing to load an extension, show where Hg tried to load it from.
2008-03-03 12:46:57 -05:00
Steve Borho
1ddcdfe3e8
Allow explicit disabling of extensions
...
If the first character of an extension path is '!', the extension
is silently skipped.
2007-09-18 19:53:01 -05:00
Alexis S. L. Carvalho
dc23a7db18
Move cmdtable and reposetup handling out of extensions.py
...
A new function (extensions.extensions) allows the code that is
interested in those attributes to handle them directly.
This allows some cleanups of extensions.py. Notably, we can
remove the extensions.commandtable hack.
It also makes it easier to add standard extension attributes,
like a "hgwebsetup" function or a "helptable" dict that augments
the data in help.py, etc.
2007-08-17 17:33:27 -03:00
Brendan Cully
c8c558a817
Merge with crew-stable
2007-08-09 11:37:47 -07:00
Brendan Cully
38822453d6
Cache extension load failures.
...
hg commands call extensions.loadall twice, once during dispatch and
once when the repository is instantiated. Without this change, load
caches successful loads, but not unsuccessful, causing errors to be
displayed twice.
2007-08-08 18:04:06 -07:00
Bryan O'Sullivan
f2fb8a0b42
extensions: don't get confused by aliasing between "foo" and "hgext.foo"
2007-07-30 14:53:03 -07:00
Matt Mackall
dc9134201b
extensions: untangle some recursive dependencies
2007-07-05 15:37:23 -05:00
Thomas Arendsen Hein
4d29c6dc8e
Updated copyright notices and add "and others" to "hg version"
2007-06-19 08:51:34 +02:00
Thomas Arendsen Hein
483231d996
Cleanup of whitespace, indentation and line continuation.
2007-06-19 08:06:37 +02:00
Matt Mackall
8395ca26f3
extensions: pull extension-aware bits out of ui
2007-06-18 13:24:34 -05:00
Thomas Arendsen Hein
75327fd456
merge with main
2007-06-14 11:33:32 +02:00
Brendan Cully
9b610cb44c
extensions: fix load of module/__init__.py on OS X
2007-06-13 19:05:20 -07:00
Brendan Cully
e96607cf35
extensions: load modules in module/__init__.py form.
...
For example, convert=/path/to/convert now works.
2007-06-13 13:46:40 -07:00
Matt Mackall
123d0f2541
extensions: fix lookup of hgext.foo modules
2007-06-13 13:15:53 -05:00
Matt Mackall
42349e08dc
extensions: add missing sys import
2007-06-12 10:34:54 -05:00
Matt Mackall
67bd5873db
Create a separate module for managing extensions
2007-06-11 21:09:23 -05:00