Mercurial > hg
comparison hgext/mq.py @ 10413:e433002acb05
fix up a bunch of check-code warnings
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 09 Feb 2010 14:12:22 -0600 |
parents | b59fba37e5e6 |
children | 3113736dbac5 |
comparison
equal
deleted
inserted
replaced
10412:5326800d6937 | 10413:e433002acb05 |
---|---|
857 p.write("\n") | 857 p.write("\n") |
858 if date: | 858 if date: |
859 p.write("Date: %d %d\n\n" % date) | 859 p.write("Date: %d %d\n\n" % date) |
860 else: | 860 else: |
861 p.write("# HG changeset patch\n") | 861 p.write("# HG changeset patch\n") |
862 p.write("# Parent " + hex(repo[None].parents()[0].node()) + "\n") | 862 p.write("# Parent " |
863 + hex(repo[None].parents()[0].node()) + "\n") | |
863 if user: | 864 if user: |
864 p.write("# User " + user + "\n") | 865 p.write("# User " + user + "\n") |
865 if date: | 866 if date: |
866 p.write("# Date %s %s\n\n" % date) | 867 p.write("# Date %s %s\n\n" % date) |
867 if hasattr(msg, '__call__'): | 868 if hasattr(msg, '__call__'): |