Commits

Benoît Allard committed 28a42fd

Fix a bug in handling of the pattern

Comments (0)

Files changed (1)

     Files are hot.
     """
 
-    if pattern is None:
-        ui.debug('None pattern')
-
+    if not pattern:
         pattern = ui.config('hotfiles', 'pattern')
         if pattern is None:
-            ui.debug('No pattern configured, taking all (non-merge) commits')
+            ui.debug('No pattern configured, taking all (non-merge) commits\n')
             pattern = '.*'
 
+    ui.debug('using %s as pattern to filter changesets' % pattern)
     r = re.compile(pattern)
 
     if not node: