[PATCH] hook: try to load python hook starting from repo root if not found
Alexander Solovyov
alexander at solovyov.net
Tue Dec 7 15:31:27 CST 2010
On Tue, Dec 7, 2010 at 21:25, Matt Mackall <mpm at selenic.com> wrote:
>> - mod = extensions.loadpath(path, 'hghook.%s' % hname)
>> + try:
>> + mod = extensions.loadpath(path, 'hghook.%s' % hname)
>
> Why does it ever make sense to load extensions relative to a random
> current working directory?
Well, because path can be absolute, maybe? Although that could be
handled with a check, I can rework the patch.
--
Alexander
More information about the Mercurial-devel
mailing list