[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/soc-kdesdk-dolphin-plugins-hg/dolphin-plugins/hg
From:       Vishesh Yadav <vishesh3y () gmail ! com>
Date:       2011-05-30 21:03:15
Message-ID: 20110530210315.3A792AC779 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1234266 by visheshyadav:

Fixed broken build inlast commit.

 M  +3 -1      branchtag.cpp  
 M  +2 -0      branchtag.h  
 M  +14 -0     hgwrapper.cpp  
 M  +2 -0      hgwrapper.h  


--- branches/work/soc-kdesdk-dolphin-plugins-hg/dolphin-plugins/hg/branchtag.cpp #1234265:1234266
@@ -17,7 +17,9 @@
  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
  ***************************************************************************/
 
-HgBranchTagDialog::HgBranchTagDialog(QWidget *parent=0):
+#include "branchtag.h"
+
+HgBranchTagDialog::HgBranchTagDialog(QWidget *parent):
     KDialog(parent, Qt::Dialog)
 {
 }
--- branches/work/soc-kdesdk-dolphin-plugins-hg/dolphin-plugins/hg/branchtag.h #1234265:1234266
@@ -20,6 +20,8 @@
 #ifndef HGBRANCHTAG_H
 #define HGBRANCHTAG_H
 
+#include <kdialog.h>
+
 class HgBranchTagDialog : public KDialog
 {
     Q_OBJECT
--- branches/work/soc-kdesdk-dolphin-plugins-hg/dolphin-plugins/hg/hgwrapper.cpp #1234265:1234266
@@ -29,6 +29,8 @@
             this, SLOT(slotOperationCompleted(int, QProcess::ExitStatus)));
     connect(this, SIGNAL(error(QProcess::ProcessError)),
             this, SLOT(slotOperationError()));
+
+    getBranches();
 }
 
 HgWrapper*  HgWrapper::instance()
@@ -134,5 +136,17 @@
    executeCommand(QLatin1String("commit"), args);
 }
 
+QStringList HgWrapper::getBranches()
+{
+    QStringList result;
+    
+    executeCommand("branches");
+    waitForFinished();
+    QString out = readAll();
+    qDebug() << out;
+    return result;
+
+}
+
 #include "hgwrapper.moc"
 
--- branches/work/soc-kdesdk-dolphin-plugins-hg/dolphin-plugins/hg/hgwrapper.h #1234265:1234266
@@ -44,6 +44,8 @@
     void addFiles(const KFileItemList& fileList);
     void removeFiles(const KFileItemList& fileList);
     void commit(const QString &message, const QStringList &files=QStringList());
+    QStringList getBranches();
+    QStringList getTags();
 
 private slots:
     void slotOperationCompleted(int exitCode, QProcess::ExitStatus exitStatus);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic