Mercurial > hg > easyhg
annotate logparser.h @ 74:10eb97683aa9
* Show branch names even for changes with children, if those children are on a different branch
* Pick up remote repo path from local repo via hg paths
* Some work towards breaking down files into various groups based on status
* Add /usr/local/bin to path for hg (temporary hack I hope)
author | Chris Cannam |
---|---|
date | Fri, 19 Nov 2010 14:54:19 +0000 |
parents | f583e44d9d31 |
children | 8fd71f570884 |
rev | line source |
---|---|
Chris@57 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@57 | 2 |
Chris@57 | 3 /* |
Chris@57 | 4 EasyMercurial |
Chris@57 | 5 |
Chris@57 | 6 Based on HgExplorer by Jari Korhonen |
Chris@57 | 7 Copyright (c) 2010 Jari Korhonen |
Chris@57 | 8 Copyright (c) 2010 Chris Cannam |
Chris@57 | 9 Copyright (c) 2010 Queen Mary, University of London |
Chris@57 | 10 |
Chris@57 | 11 This program is free software; you can redistribute it and/or |
Chris@57 | 12 modify it under the terms of the GNU General Public License as |
Chris@57 | 13 published by the Free Software Foundation; either version 2 of the |
Chris@57 | 14 License, or (at your option) any later version. See the file |
Chris@57 | 15 COPYING included with this distribution for more information. |
Chris@57 | 16 */ |
Chris@57 | 17 |
Chris@43 | 18 #ifndef LOGPARSER_H |
Chris@43 | 19 #define LOGPARSER_H |
Chris@43 | 20 |
Chris@43 | 21 #include <QObject> |
Chris@43 | 22 #include <QString> |
Chris@43 | 23 #include <QList> |
Chris@43 | 24 #include <QMap> |
Chris@43 | 25 |
Chris@43 | 26 typedef QMap<QString, QString> LogEntry; |
Chris@43 | 27 typedef QList<LogEntry> LogList; |
Chris@43 | 28 |
Chris@43 | 29 class LogParser : public QObject |
Chris@43 | 30 { |
Chris@43 | 31 public: |
Chris@74 | 32 LogParser(QString text, QString separator = ":"); |
Chris@43 | 33 |
Chris@43 | 34 QStringList split(); |
Chris@43 | 35 LogList parse(); |
Chris@43 | 36 |
Chris@43 | 37 private: |
Chris@43 | 38 QString m_text; |
Chris@74 | 39 QString m_sep; |
Chris@43 | 40 }; |
Chris@43 | 41 |
Chris@43 | 42 #endif // LOGPARSER_H |