Commits

Jang Junseong committed d1e9713
  • Participants
  • Parent commits dd984b4

Comments (0)

Files changed (1)

File mercurial_reviewboard/__init__.py

         return repo.findoutgoing(remoterepo)
 
     try:
-        common, outheads = discovery.findcommonoutgoing(repo, remoterepo)
-        return repo.changelog.findmissing(common=common, heads=outheads)
+        version = map(int, util.version().split('.'))
+        if version >= [2, 1, 0]:
+            outgoing = discovery.findcommonoutgoing(repo, remoterepo)
+            return outgoing.missing
+        else:
+            common, outheads = discovery.findcommonoutgoing(repo, remoterepo)
+            return repo.changelog.findmissing(common=common, heads=outheads)
     except AttributeError:
         # Must be earlier than 1.9
         return discovery.findoutgoing(repo, remoterepo)