ports/devel/svn2git/files/freebsd-export-patch
David Naylor f8227365e2 devel/svn2git: update to 1.0.12
- add LICENSE_FILE as it is now included in the tarball
 - LICENSE does not indicate "or later" for version
 - add libapr as dependency, it is linked in
 - switch to Qt5 [1]
 - override LOCALBASE for SVN and APR includes using qmake arguments
 - update patches (and patch name)

[1] Although the code base still compiles with Qt4, the src.pro file
implicitly uses Qt5.  On Qt4 the overriding of the SVN_INCLUDE and
APR_INCLUDE variables do not work (due to the src.pro implicitly using Qt5).
2018-06-02 11:46:33 +00:00

17 lines
1 KiB
Text

--- src/svn.cpp.orig 2018-05-27 18:34:59 UTC
+++ src/svn.cpp
@@ -873,7 +873,13 @@ int SvnRevision::exportInternal(const ch
// changes across directory re-organizations and wholesale branch
// imports.
//
- if (path_from != NULL && preveffectiverepository == effectiveRepository && prevbranch != branch) {
+ // NOTE(uqs): HACK ALERT! Only merge between head, projects, and user
+ // branches for the FreeBSD repositories. Never merge into stable or
+ // releng, as we only ever cherry-pick changes to those branches.
+ // FIXME: Needs to move into the ruleset ...
+ if (path_from != NULL && preveffectiverepository == effectiveRepository && prevbranch != branch &&
+ (branch.startsWith("master") || branch.startsWith("head") ||
+ branch.startsWith("projects") || branch.startsWith("user"))) {
if(ruledebug)
qDebug() << "copy from branch" << prevbranch << "to branch" << branch << "@rev" << rev_from;
txn->noteCopyFromBranch (prevbranch, rev_from);