@@ -79,6 +79,7 @@ class SvnPrivate
7979 QList<MatchRuleList> allMatchRules;
8080 RepositoryHash repositories;
8181 IdentityHash identities;
82+ QString userdomain;
8283
8384 SvnPrivate (const QString &pathToRepository);
8485 ~SvnPrivate ();
@@ -130,6 +131,11 @@ void Svn::setIdentityMap(const IdentityHash &identityMap)
130131 d->identities = identityMap;
131132}
132133
134+ void Svn::setIdentityDomain (const QString &identityDomain)
135+ {
136+ d->userdomain = identityDomain;
137+ }
138+
133139int Svn::youngestRevision ()
134140{
135141 return d->youngestRevision ();
@@ -388,6 +394,7 @@ class SvnRevision
388394 QList<MatchRuleList> allMatchRules;
389395 RepositoryHash repositories;
390396 IdentityHash identities;
397+ QString userdomain;
391398
392399 svn_fs_t *fs;
393400 svn_fs_root_t *fs_root;
@@ -436,6 +443,7 @@ int SvnPrivate::exportRevision(int revnum)
436443 rev.allMatchRules = allMatchRules;
437444 rev.repositories = repositories;
438445 rev.identities = identities;
446+ rev.userdomain = userdomain;
439447
440448 // open this revision:
441449 printf (" Exporting revision %d " , revnum);
@@ -506,8 +514,8 @@ int SvnRevision::fetchRevProps()
506514 if (!svnauthor || svn_string_isempty (svnauthor))
507515 authorident = " nobody <nobody@localhost>" ;
508516 else
509- authorident = svnauthor->data + QByteArray (" <" ) +
510- svnauthor-> data + QByteArray (" @localhost >" );
517+ authorident = svnauthor->data + QByteArray (" <" ) + svnauthor-> data +
518+ QByteArray ( " @ " ) + userdomain. toUtf8 () + QByteArray (" >" );
511519 }
512520 propsFetched = true ;
513521 return EXIT_SUCCESS;
@@ -771,18 +779,6 @@ int SvnRevision::exportInternal(const char *key, const svn_fs_path_change_t *cha
771779 transactions.insert (repository + branch, txn);
772780 }
773781
774- //
775- // If this path was copied from elsewhere, use it to infer _some_
776- // merge points. This heuristic is fairly useful for tracking
777- // changes across directory re-organizations and wholesale branch
778- // imports.
779- //
780- if (path_from != NULL && prevrepository == repository && prevbranch != branch) {
781- if (ruledebug)
782- qDebug () << " copy from branch" << prevbranch << " to branch" << branch << " @rev" << rev_from;
783- txn->noteCopyFromBranch (prevbranch, rev_from);
784- }
785-
786782 if (change->change_kind == svn_fs_path_change_replace && path_from == NULL ) {
787783 if (ruledebug)
788784 qDebug () << " replaced with empty path (" << branch << path << " )" ;
0 commit comments