Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 852:1df0983eb589
Allow HG patch to appear late in the input stream
author | Samuel Tardieu <sam@rfc1149.net> |
---|---|
date | Sat, 06 Aug 2005 21:23:38 +0100 |
parents | 8933ef744325 |
children | c2e77581bc84 9a0af739cf55 bc9ca4d51d23 62ec665759f2 01215ad04283 |
comparison
equal
deleted
inserted
replaced
851:73a432c8040a | 852:1df0983eb589 |
---|---|
738 elif not line.startswith("# ") and line: | 738 elif not line.startswith("# ") and line: |
739 message.append(line) | 739 message.append(line) |
740 hgpatch = False | 740 hgpatch = False |
741 elif line == '# HG changeset patch': | 741 elif line == '# HG changeset patch': |
742 hgpatch = True | 742 hgpatch = True |
743 message = [] # We may have collected garbage | |
743 else: | 744 else: |
744 message.append(line) | 745 message.append(line) |
745 | 746 |
746 # make sure message isn't empty | 747 # make sure message isn't empty |
747 if not message: | 748 if not message: |