Commits

Augie Fackler  committed 462d80c

makedesc: downgrade syntax to restore Python 2.4 support.

  • Participants
  • Parent commits 4a974c8

Comments (0)

Files changed (1)

File hg_histedit.py

 
 
 def makedesc(c):
-    summary = c.description().splitlines()[0] if c.description() != '' else ''
+    summary = ''
+    if c.description():
+        summary = c.description().splitlines()[0]
     line = 'pick %s %d %s' % (c.hex()[:12], c.rev(), summary)
     return line[:80]  # trim to 80 chars so it's not stupidly wide in my editor