Mercurial > hg > mercurial-crew-with-dirclash
comparison hgext/mq.py @ 2301:7c2623aedeb4
Strip empty lines and trailing spaces around commit messages.
Fixes issue213 and part of issue249 (trying to keep node id on import)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Wed, 17 May 2006 19:38:41 +0200 |
parents | 52b9b6751b2c |
children | 2785aeb51be4 |
comparison
equal
deleted
inserted
replaced
2300:52b9b6751b2c | 2301:7c2623aedeb4 |
---|---|
137 format = "tag" | 137 format = "tag" |
138 elif format == "tag" and line == "": | 138 elif format == "tag" and line == "": |
139 # when looking for tags (subject: from: etc) they | 139 # when looking for tags (subject: from: etc) they |
140 # end once you find a blank line in the source | 140 # end once you find a blank line in the source |
141 format = "tagdone" | 141 format = "tagdone" |
142 else: | 142 elif message or line: |
143 message.append(line) | 143 message.append(line) |
144 comments.append(line) | 144 comments.append(line) |
145 | 145 |
146 eatdiff(message) | 146 eatdiff(message) |
147 eatdiff(comments) | 147 eatdiff(comments) |