[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/devtools/kdevelop4-extra-plugins/mercurial
From: Fabian Wiesel <fabian.wiesel () googlemail ! com>
Date: 2010-01-16 8:49:45
Message-ID: 1263631785.026113.25404.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1075454 by wiesel:
mercurial-plugin now implements the ibasicvcs::log(from, limit) and \
ibasicvcs::log(from, to) interface correctly
M +22 -11 mercurialplugin.cpp
M +5 -0 mercurialplugin.h
--- trunk/playground/devtools/kdevelop4-extra-plugins/mercurial/mercurialplugin.cpp \
#1075453:1075454 @@ -395,29 +395,40 @@
const VcsRevision& rev,
unsigned long limit)
{
- Q_UNUSED(rev)
- Q_UNUSED(limit)
+ return log(localLocation, \
VcsRevision::createSpecialRevision(VcsRevision::Start), rev, limit); +}
+
+VcsJob* MercurialPlugin::log(const KUrl& localLocation,
+ const VcsRevision& rev,
+ const VcsRevision& limit)
+{
+ return log(localLocation, rev, limit, 0);
+}
+
+
+VcsJob* MercurialPlugin::log(const KUrl& localLocation,
+ const VcsRevision& to,
+ const VcsRevision& from,
+ unsigned long limit)
+{
std::auto_ptr<DVcsJob> job(new DVcsJob(this));
if (!prepareJob(job.get(), localLocation.toLocalFile())) {
return NULL;
}
- *job << "hg" << "log" << "--template" << \
"{file_copies}\\0{file_dels}\\0{file_adds}\\0{file_mods}\\0{desc}\\0{date|isodate}\\0{author}\\0{parents}\\0{node}\\0{rev}\\0" \
<< "--"; + *job << "hg" << "log" << "-r" << toMercurialRevision(from) + ':' + \
toMercurialRevision(to);
+ if (limit > 0)
+ *job << "-l" << QString::number(limit);
+
+ *job << "--template" << \
"{file_copies}\\0{file_dels}\\0{file_adds}\\0{file_mods}\\0{desc}\\0{date|isodate}\\0{author}\\0{parents}\\0{node}\\0{rev}\\0" \
<< "--"; +
addFileList(job.get(), localLocation);
connect(job.get(), SIGNAL(readyForParsing(DVcsJob*)), \
SLOT(parseLogOutputBasicVersionControl(DVcsJob*))); return job.release();
}
-VcsJob* MercurialPlugin::log(const KUrl& localLocation,
- const VcsRevision& rev,
- const VcsRevision& limit)
-{
- Q_UNUSED(limit)
- return log(localLocation, rev, 0);
-}
-
VcsJob* MercurialPlugin::annotate(const KUrl& localLocation,
const VcsRevision& rev)
{
--- trunk/playground/devtools/kdevelop4-extra-plugins/mercurial/mercurialplugin.h \
#1075453:1075454 @@ -93,6 +93,11 @@
KDevelop::VcsJob* log(const KUrl& localLocation,
const KDevelop::VcsRevision& rev,
const KDevelop::VcsRevision& limit);
+
+ KDevelop::VcsJob* log(const KUrl& localLocation,
+ const KDevelop::VcsRevision& to,
+ const KDevelop::VcsRevision& from,
+ unsigned long limit);
KDevelop::VcsJob* annotate(const KUrl& localLocation,
const KDevelop::VcsRevision& rev);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic