# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1414471644 25200
#      Mon Oct 27 21:47:24 2014 -0700
# Node ID 4bca27d22a964234478454f564512c0721e7d3ef
# Parent  5bd9cdfef71ac6f69ac594c53215f9a97b155adb
git_handler: write inequality more idiomatically

diff --git a/hggit/git_handler.py b/hggit/git_handler.py
--- a/hggit/git_handler.py
+++ b/hggit/git_handler.py
@@ -608,7 +608,7 @@
                                               False)
         extra_message = ''
         git_extra = []
-        if not ctx.branch() == 'default':
+        if ctx.branch() != 'default':
             # we always store the branch in the extra message
             extra_message += "branch : " + ctx.branch() + "\n"