diff hgext/largefiles/overrides.py @ 32348:e8569cc131d1

py3: explicitly convert a list to bytes to pass in ui.debug Here pats is a list obviously. Since we can't pass unicodes to ui.debug, we have to pass this as bytes.
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 04 May 2017 00:23:09 +0530
parents 8a87bfc5bebb
children 23c9a2a71c6e
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Wed May 17 20:14:27 2017 -0700
+++ b/hgext/largefiles/overrides.py	Thu May 04 00:23:09 2017 +0530
@@ -379,7 +379,7 @@
             return r
         m.matchfn = lfmatchfn
 
-        ui.debug('updated patterns: %s\n' % sorted(pats))
+        ui.debug('updated patterns: %s\n' % ', '.join(sorted(pats)))
         return m, pats
 
     # For hg log --patch, the match object is used in two different senses: