Commits

Angel Ezquerra committed 52f9a32

email: properly detect hg >= 2.2

The email dialog was not properly detecting hg >= 2.2, which made it not
be able to handle the new --body flag of the hg email command.

Comments (0)

Files changed (1)

tortoisehg/hgqt/hgemail.py

 class EmailDialog(QDialog):
     """Dialog for sending patches via email"""
 
-    _hasbodyflag = float(hglib.hgversion[0]) > 2.1
+    # hg >= 2.2
+    _hasbodyflag = hglib.hgversion > "2.1"
 
     def __init__(self, repo, revs, parent=None, outgoing=False,
                  outgoingrevs=None):