diff mercurial/localrepo.py @ 28876:79b8f052ee51

localrepo: refactor prepushoutgoinghook to take a pushop prepushoutgoinghook was introduced in 6c383c871fdb and largefiles is the only in-tree use of it. Refactor it to be more useful for other use cases in largefiles.
author Mads Kiilerich <madski@unity3d.com>
date Wed, 13 Apr 2016 01:09:11 +0200
parents 1f65f291a5b7
children 032c4c2f802a
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Mar 29 00:08:25 2016 +0900
+++ b/mercurial/localrepo.py	Wed Apr 13 01:09:11 2016 +0200
@@ -1887,8 +1887,8 @@
 
     @unfilteredpropertycache
     def prepushoutgoinghooks(self):
-        """Return util.hooks consists of "(repo, remote, outgoing)"
-        functions, which are called before pushing changesets.
+        """Return util.hooks consists of a pushop with repo, remote, outgoing
+        methods, which are called before pushing changesets.
         """
         return util.hooks()