Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/external/gpl2/xcvs/dist/src Pull up following revision(s)...
details: https://anonhg.NetBSD.org/src/rev/b936a3c53c08
branches: netbsd-7
changeset: 799782:b936a3c53c08
user: snj <snj%NetBSD.org@localhost>
date: Sat Feb 06 21:05:12 2016 +0000
description:
Pull up following revision(s) (requested by christos in ticket #1099):
external/gpl2/xcvs/dist/src/import.c: revision 1.4
Remove trailing whitespace from imported messages when adding new files.
This is done in RCS_checkin() but we have a "fast path" for new files here
that does not do it. Hooray for specialized code.
diffstat:
external/gpl2/xcvs/dist/src/import.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r ff4b88c03554 -r b936a3c53c08 external/gpl2/xcvs/dist/src/import.c
--- a/external/gpl2/xcvs/dist/src/import.c Sat Feb 06 21:01:39 2016 +0000
+++ b/external/gpl2/xcvs/dist/src/import.c Sat Feb 06 21:05:12 2016 +0000
@@ -579,7 +579,7 @@
process_import_file (char *message, char *vfile, char *vtag, int targc,
char **targv)
{
- char *rcs;
+ char *rcs, *cleanmessage;
int inattic = 0;
rcs = Xasprintf ("%s/%s%s", repository, vfile, RCSEXT);
@@ -654,13 +654,14 @@
Entries_Close (entries);
}
#endif
-
- retval = add_rcs_file (message, rcs, vfile, vhead, our_opt,
+ cleanmessage = make_message_rcsvalid (message);
+ retval = add_rcs_file (cleanmessage, rcs, vfile, vhead, our_opt,
vbranch, vtag, targc, targv,
NULL, 0, logfp, killnew);
if (free_opt != NULL)
free (free_opt);
free (rcs);
+ free (cleanmessage);
return retval;
}
free (attic_name);
Home |
Main Index |
Thread Index |
Old Index