##// END OF EJS Templates
localrepo: introduce "prepushoutgoinghooks" to extend outgoing check easily...
FUJIWARA Katsunori -
r21043:6c383c87 default
parent child Browse files
Show More
@@ -103,6 +103,9 b' def push(repo, remote, force=False, revs'
103 103 try:
104 104 _pushdiscovery(pushop)
105 105 if _pushcheckoutgoing(pushop):
106 pushop.repo.prepushoutgoinghooks(pushop.repo,
107 pushop.remote,
108 pushop.outgoing)
106 109 _pushchangeset(pushop)
107 110 _pushcomputecommonheads(pushop)
108 111 _pushsyncphase(pushop)
@@ -1696,6 +1696,13 b' class localrepository(object):'
1696 1696 """
1697 1697 pass
1698 1698
1699 @unfilteredpropertycache
1700 def prepushoutgoinghooks(self):
1701 """Return util.hooks consists of "(repo, remote, outgoing)"
1702 functions, which are called before pushing changesets.
1703 """
1704 return util.hooks()
1705
1699 1706 def push(self, remote, force=False, revs=None, newbranch=False):
1700 1707 return exchange.push(self, remote, force, revs, newbranch)
1701 1708
General Comments 0
You need to be logged in to leave comments. Login now