Commits

Fernando G N Rocha committed 201afda

Check if if repo has attribute match breaks with mercurial 1.8.4

  • Participants
  • Parent commits 3ba748a

Comments (0)

Files changed (1)

 
 def new_commit(orig_commit, ui, repo, *pats, **opts):
     smelly_count = 0
-    if not hasattr(repo, 'match'):
+    if util.version() >= '1.9':
         match = utilmodule.match(repo[None], pats, opts)
     else:
         match = utilmodule.match(repo, pats, opts)