@@ -78,7 +78,6 @@ class FastImportRepository : public Repository
78
78
};
79
79
FastImportRepository (const Rules::Repository &rule);
80
80
int setupIncremental (int &cutoff);
81
- void restoreAnnotatedTags ();
82
81
void restoreBranchNotes ();
83
82
void restoreLog ();
84
83
~FastImportRepository ();
@@ -186,7 +185,6 @@ class ForwardingRepository : public Repository
186
185
ForwardingRepository (const QString &n, Repository *r, const QString &p) : name(n), repo(r), prefix(p) {}
187
186
188
187
int setupIncremental (int &) { return 1 ; }
189
- void restoreAnnotatedTags () {}
190
188
void restoreBranchNotes () {}
191
189
void restoreLog () {}
192
190
@@ -254,33 +252,6 @@ class ProcessCache: QLinkedList<FastImportRepository *>
254
252
};
255
253
static ProcessCache processCache;
256
254
257
- QDataStream &operator <<(QDataStream &out, const FastImportRepository::AnnotatedTag &annotatedTag)
258
- {
259
- out << annotatedTag.supportingRef
260
- << annotatedTag.svnprefix
261
- << annotatedTag.author
262
- << annotatedTag.log
263
- << (quint64) annotatedTag.dt
264
- << (qint64) annotatedTag.revnum ;
265
- return out;
266
- }
267
-
268
- QDataStream &operator >>(QDataStream &in, FastImportRepository::AnnotatedTag &annotatedTag)
269
- {
270
- quint64 dt;
271
- qint64 revnum;
272
-
273
- in >> annotatedTag.supportingRef
274
- >> annotatedTag.svnprefix
275
- >> annotatedTag.author
276
- >> annotatedTag.log
277
- >> dt
278
- >> revnum;
279
- annotatedTag.dt = (uint ) dt;
280
- annotatedTag.revnum = (int ) revnum;
281
- return in;
282
- }
283
-
284
255
Repository *createRepository (const Rules::Repository &rule, const QHash<QString, Repository *> &repositories)
285
256
{
286
257
if (rule.forwardTo .isEmpty ())
@@ -300,13 +271,6 @@ static QString marksFileName(QString name)
300
271
return name;
301
272
}
302
273
303
- static QString annotatedTagsFileName (QString name)
304
- {
305
- name.replace (' /' , ' _' );
306
- name.prepend (" annotatedTags-" );
307
- return name;
308
- }
309
-
310
274
static QString branchNotesFileName (QString name)
311
275
{
312
276
name.replace (' /' , ' _' );
@@ -498,17 +462,6 @@ int FastImportRepository::setupIncremental(int &cutoff)
498
462
return cutoff;
499
463
}
500
464
501
- void FastImportRepository::restoreAnnotatedTags ()
502
- {
503
- QFile annotatedTagsFile (name + " /" + annotatedTagsFileName (name));
504
- if (!annotatedTagsFile.exists ())
505
- return ;
506
- annotatedTagsFile.open (QIODevice::ReadOnly);
507
- QDataStream annotatedTagsStream (&annotatedTagsFile);
508
- annotatedTagsStream >> annotatedTags;
509
- annotatedTagsFile.close ();
510
- }
511
-
512
465
void FastImportRepository::restoreBranchNotes ()
513
466
{
514
467
QFile branchNotesFile (name + " /" + branchNotesFileName (name));
@@ -780,13 +733,7 @@ void FastImportRepository::finalizeTags()
780
733
if (annotatedTags.isEmpty ())
781
734
return ;
782
735
783
- QFile annotatedTagsFile (name + " /" + annotatedTagsFileName (name));
784
- annotatedTagsFile.open (QIODevice::WriteOnly);
785
- QDataStream annotatedTagsStream (&annotatedTagsFile);
786
- annotatedTagsStream << annotatedTags;
787
- annotatedTagsFile.close ();
788
-
789
- printf (" Finalising annotated tags for %s..." , qPrintable (name));
736
+ printf (" Finalising tags for %s..." , qPrintable (name));
790
737
startFastImport ();
791
738
792
739
QHash<QString, AnnotatedTag>::ConstIterator it = annotatedTags.constBegin ();
0 commit comments