Mercurial > hg
comparison hgext/transplant.py @ 3831:2db191165e9a
transplant: don't add extra newlines to changelog entry in filter
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Fri, 08 Dec 2006 12:52:17 -0800 |
parents | e96f97ca0358 |
children | abaee83ce0a6 |
comparison
equal
deleted
inserted
replaced
3828:ed5a9b27bedc | 3831:2db191165e9a |
---|---|
176 fd, headerfile = tempfile.mkstemp(prefix='hg-transplant-') | 176 fd, headerfile = tempfile.mkstemp(prefix='hg-transplant-') |
177 fp = os.fdopen(fd, 'w') | 177 fp = os.fdopen(fd, 'w') |
178 fp.write("# HG changeset patch\n") | 178 fp.write("# HG changeset patch\n") |
179 fp.write("# User %s\n" % user) | 179 fp.write("# User %s\n" % user) |
180 fp.write("# Date %d %d\n" % date) | 180 fp.write("# Date %d %d\n" % date) |
181 fp.write(changelog[4].rstrip()) | 181 fp.write(changelog[4]) |
182 fp.write("\n\n") | |
183 fp.close() | 182 fp.close() |
184 | 183 |
185 try: | 184 try: |
186 util.system('%s %s %s' % (filter, util.shellquote(headerfile), | 185 util.system('%s %s %s' % (filter, util.shellquote(headerfile), |
187 util.shellquote(patchfile)), | 186 util.shellquote(patchfile)), |