summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e9ab02)
raw | patch | inline | side by side (parent: 0e9ab02)
author | Martin Langhoff <martin@catalyst.net.nz> | |
Fri, 11 Nov 2005 05:00:57 +0000 (18:00 +1300) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 11 Nov 2005 09:15:26 +0000 (01:15 -0800) |
Arch uses pika escaping in some places (but not all!). Specifically, commits of
the type 'patch' use pika escaping in the log entries, which we parse to know
what to add/delete and what to commit.
This patch checks for hints of pika escaping and asks tla to unescape for us.
Originally implemented by Penny Leach <penny@catalyst.net.nz>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
the type 'patch' use pika escaping in the log entries, which we parse to know
what to add/delete and what to commit.
This patch checks for hints of pika escaping and asks tla to unescape for us.
Originally implemented by Penny Leach <penny@catalyst.net.nz>
Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-archimport.perl | patch | blob | history |
diff --git a/git-archimport.perl b/git-archimport.perl
index 980e827b27ae0fa9a07667501d4cb26b5673cedf..e22c81628dbde8a16c0bef5f64d3e6b34fba4f26 100755 (executable)
--- a/git-archimport.perl
+++ b/git-archimport.perl
next if $t =~ m!\{arch\}/!;
next if $t =~ m!\.arch-ids/!;
next if $t =~ m!\.arch-inventory$!;
+ # tla cat-archive-log will give us filenames with spaces as file\(sp)name - why?
+ # we can assume that any filename with \ indicates some pika escaping that we want to get rid of.
+ if ($t =~ /\\/ ){
+ $t = `tla escape --unescaped '$t'`;
+ }
push (@tmp, shell_quote($t));
}
@$ref = @tmp;