Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
28875:2e9f5453ab5a | 28876:79b8f052ee51 |
---|---|
1885 """ | 1885 """ |
1886 pass | 1886 pass |
1887 | 1887 |
1888 @unfilteredpropertycache | 1888 @unfilteredpropertycache |
1889 def prepushoutgoinghooks(self): | 1889 def prepushoutgoinghooks(self): |
1890 """Return util.hooks consists of "(repo, remote, outgoing)" | 1890 """Return util.hooks consists of a pushop with repo, remote, outgoing |
1891 functions, which are called before pushing changesets. | 1891 methods, which are called before pushing changesets. |
1892 """ | 1892 """ |
1893 return util.hooks() | 1893 return util.hooks() |
1894 | 1894 |
1895 def pushkey(self, namespace, key, old, new): | 1895 def pushkey(self, namespace, key, old, new): |
1896 try: | 1896 try: |