Commits

gbrandl  committed 7c430d3

Fix for commit without pats.

  • Participants
  • Parent commits 318b500

Comments (0)

Files changed (1)

File hgchangelog.py

 
     # check if changelog changed
     logname = ui.config('changelog', 'filename', 'CHANGES')
-    match = cmdutil.match(repo, pats, opts)
-    if logname not in match:
-        # changelog did not change
-        return orig_commit(ui, repo, *pats, **opts)
+    if pats:
+        match = cmdutil.match(repo, pats, opts)
+        if logname not in match:
+            # changelog is not mentioned
+            return orig_commit(ui, repo, *pats, **opts)
     logmatch = cmdutil.match(repo, [logname], {})
     # get diff of changelog
     log = []