aboutsummaryrefslogtreecommitdiffstats
path: root/src/repository.cpp
diff options
context:
space:
mode:
authorTorgny Nyblom <kde@nyblom.org>2010-05-18 19:51:52 +0200
committerTorgny Nyblom <kde@nyblom.org>2010-05-18 19:51:52 +0200
commit4112f7856817fcaa04c1f42cbe3e871c0bd7c61c (patch)
tree03459db58a8acb07fd5a491fa20a87994f40750f /src/repository.cpp
parent125e8ac013f3fc7df64dde0a050c012235bdf185 (diff)
downloadsvn2git-4112f7856817fcaa04c1f42cbe3e871c0bd7c61c.tar
svn2git-4112f7856817fcaa04c1f42cbe3e871c0bd7c61c.tar.gz
svn2git-4112f7856817fcaa04c1f42cbe3e871c0bd7c61c.tar.bz2
svn2git-4112f7856817fcaa04c1f42cbe3e871c0bd7c61c.tar.xz
svn2git-4112f7856817fcaa04c1f42cbe3e871c0bd7c61c.zip
Save the exported marks along with the associated revisions for later use.
Diffstat (limited to 'src/repository.cpp')
-rw-r--r--src/repository.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/repository.cpp b/src/repository.cpp
index f81bb26..88b17c3 100644
--- a/src/repository.cpp
+++ b/src/repository.cpp
@@ -97,6 +97,19 @@ void Repository::closeFastImport()
}
processHasStarted = false;
processCache.remove(this);
+ // Save the exported marks
+ QString revsFile = name;
+ revsFile.replace('/', '_');
+ revsFile.prepend("revisions-");
+ QFile exportedMarks(revsFile);
+ qDebug() << exportedMarks.open(QIODevice::Truncate | QIODevice::Text | QIODevice::WriteOnly);
+
+ int mark;
+ foreach(mark, exportedCommits)
+ {
+ exportedMarks.write(QString(":%2 r%1\n").arg(mark).arg(commitMarks.value(mark)).toLocal8Bit());
+ }
+ exportedMarks.close();
}
void Repository::reloadBranches()