projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
123bb88
)
Fix merging Horde changes to Git.
author
Jan Schneider
<jan@horde.org>
Wed, 30 Dec 2009 14:24:48 +0000
(15:24 +0100)
committer
Jan Schneider
<jan@horde.org>
Wed, 30 Dec 2009 14:24:48 +0000
(15:24 +0100)
framework/devtools/horde-merge.php
patch
|
blob
|
history
diff --git
a/framework/devtools/horde-merge.php
b/framework/devtools/horde-merge.php
index
aaf8403
..
8ae4610
100755
(executable)
--- a/
framework/devtools/horde-merge.php
+++ b/
framework/devtools/horde-merge.php
@@
-59,7
+59,7
@@
foreach ($lines as $line) {
continue;
}
$tok = preg_split('/\s+/', $line, -1, PREG_SPLIT_NO_EMPTY);
- $file = str_replace(
array('horde/', 'Attic/')
, '', $tok[3]);
+ $file = str_replace(
'Attic/'
, '', $tok[3]);
if (isset($tok[4]) && $tok[4] == '(dead)') {
$cmd = $CVS . ' remove -f ' . $file;
$new_version = $tok[0];
@@
-99,7
+99,7
@@
foreach ($lines as $line) {
$cmd = sprintf($CVS . ' diff -N -r %s -r %s -kk %s | patch %s',
$old_version,
$new_version,
-
$file
,
+
str_replace('horde/', '', $file)
,
$target . $file);
}
}