Commits

Joongi Kim committed b672d6a

fixed a bug that compares unrelated revisions in mercurial

Comments (0)

Files changed (1)

tracext/changesetnotifier/api.py

 
 from trac.core import *
 from trac.config import BoolOption, Option
+from trac.util import pathjoin
 from trac.util.text import CRLF
 from trac.mimeview import Mimeview
 from trac.versioncontrol import IRepositoryChangeListener
         new_path = u''
         new_rev = changeset.rev
 
-        prev = repos.get_node(new_path, new_rev).get_previous()
-        if prev:
-            prev_path, prev_rev = prev[:2]
-        else:
-            prev_path, prev_rev = new_path, repos.previous_rev(new_rev)
+        prev_path, prev_rev = new_path, repos.previous_rev(new_rev)
         data = {
             'new_path': new_path,
             'new_rev': new_rev,