##// END OF EJS Templates
save full raw id in push log data for much faster revision lookup
marcink -
r2324:1dbf0773 beta
parent child Browse files
Show More
@@ -24,13 +24,15 b''
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 import os
25 import os
26 import sys
26 import sys
27 import binascii
28 from inspect import isfunction
27
29
28 from mercurial.scmutil import revrange
30 from mercurial.scmutil import revrange
29 from mercurial.node import nullrev
31 from mercurial.node import nullrev
32
30 from rhodecode import EXTENSIONS
33 from rhodecode import EXTENSIONS
31 from rhodecode.lib import helpers as h
34 from rhodecode.lib import helpers as h
32 from rhodecode.lib.utils import action_logger
35 from rhodecode.lib.utils import action_logger
33 from inspect import isfunction
34
36
35
37
36 def _get_scm_size(alias, root_path):
38 def _get_scm_size(alias, root_path):
@@ -134,8 +136,8 b' def log_push_action(ui, repo, **kwargs):'
134 return (len(repo) - 1, 0)
136 return (len(repo) - 1, 0)
135
137
136 stop, start = get_revs(repo, [node + ':'])
138 stop, start = get_revs(repo, [node + ':'])
137
139 h = binascii.hexlify
138 revs = (str(repo[r]) for r in xrange(start, stop + 1))
140 revs = (h(repo[r].node()) for r in xrange(start, stop + 1))
139 elif scm == 'git':
141 elif scm == 'git':
140 revs = []
142 revs = []
141
143
General Comments 0
You need to be logged in to leave comments. Login now