##// END OF EJS Templates
convert: update p4 for Python 3...
Nate Skulic -
r47899:3af29373 stable
parent child Browse files
Show More
@@ -151,12 +151,10 b' class p4_source(common.converter_source)'
151 views[sview] = cview
151 views[sview] = cview
152
152
153 # list of changes that affect our source files
153 # list of changes that affect our source files
154 p4changes = p4changes.keys()
154 p4changes = sorted(p4changes.keys(), key=int)
155 p4changes.sort(key=int)
156
155
157 # list with depot pathnames, longest first
156 # list with depot pathnames, longest first
158 vieworder = views.keys()
157 vieworder = sorted(views.keys(), key=len, reverse=True)
159 vieworder.sort(key=len, reverse=True)
160
158
161 # handle revision limiting
159 # handle revision limiting
162 startrev = self.ui.config(b'convert', b'p4.startrev')
160 startrev = self.ui.config(b'convert', b'p4.startrev')
@@ -188,7 +186,7 b' class p4_source(common.converter_source)'
188 else:
186 else:
189 shortdesc = b'**empty changelist description**'
187 shortdesc = b'**empty changelist description**'
190
188
191 t = b'%s %s' % (c.rev, repr(shortdesc)[1:-1])
189 t = b'%s %s' % (c.rev, shortdesc)
192 ui.status(stringutil.ellipsis(t, 80) + b'\n')
190 ui.status(stringutil.ellipsis(t, 80) + b'\n')
193
191
194 files = []
192 files = []
General Comments 0
You need to be logged in to leave comments. Login now