Mercurial > public > mercurial-scm > hg
diff tests/test-largefiles.t @ 20548:5bd6a9fec103
hooks: for python hooks, consistently use __name__ etc as name, not the repr
There is no reason to expose unnecessary Python implementation details and
memory locations, also not in debug mode.
readablefunc was already creating a nice name - we move that functionality
up and reuse it.
We consider having a __call__ and being types.FunctionType sufficiently
similar and unify these two to just using the existing check for __call__.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sat, 15 Feb 2014 01:23:12 +0100 |
parents | ea005e754c9c |
children | b93791e0de25 |
line wrap: on
line diff
--- a/tests/test-largefiles.t Sat Feb 15 01:23:12 2014 +0100 +++ b/tests/test-largefiles.t Sat Feb 15 01:23:12 2014 +0100 @@ -900,7 +900,7 @@ adding manifests adding file changes added 6 changesets with 16 changes to 8 files - calling hook changegroup.lfiles: <function checkrequireslfiles at *> (glob) + calling hook changegroup.lfiles: hgext.largefiles.reposetup.checkrequireslfiles (run 'hg update' to get a working copy) pulling largefiles for revision 7 found 971fb41e78fea4f8e0ba5244784239371cb00591 in store