| Summary: | path is doubled when resolving conflicts | ||
|---|---|---|---|
| Product: | [Applications] kdesvn | Reporter: | Oliver Konz <kde> |
| Component: | General | Assignee: | KDESvn default assignee <kdesvn-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | Ch.Ehrlicher, stephan.mucha |
| Priority: | NOR | ||
| Version First Reported In: | 1.6.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Oliver Konz
2015-02-11 13:52:07 UTC
I wrote the following perl script as quick and dirty workaround. sure, one could correct the bug in the application itself, buuut: I'm not familiar with C++/Qt/KDE and it would take ages.
just copy in an editor, save as kdiff3_pathstrip or something somewhere in your PATH. don't forget to make it executable. then in kdesvn change preferences to launch kdiff3_pathstrip (same arguments), so my settings for external merging/conflict editing are:
kdiff3_pathstrip %s1 %s2 %t
kdiff3_pathstrip %o %m %n -o %t
BEWARE:
no warranties. :-) it is really dirty (to keep pattern matching simple, it works only for files under /home/.... if your file are elsewhere you have to tweak it accordingly.
#++++++++++++++++++++++++ snap ++++++++++++++++++++++
#!/usr/bin/perl
my (@args)=(@ARGV);
for my $arg (@args) {
if (defined $arg) {
$arg =~ s|/home.*/home|/home|;
}
}
my ($o,$m,$n,$p,$t) = @args;
my $cmd = "kdiff3 $o $m $n";
if (defined $t) {
$cmd .= " -o $t ";
}
system($cmd);
#++++++++++++++++++++++++ snap ++++++++++++++++++++++
*** This bug has been marked as a duplicate of bug 322182 *** |