File indexing completed on 2024-05-12 05:44:25
0001 /*************************************************************************** 0002 * Copyright (C) 2005-2009 by Rajko Albrecht * 0003 * ral@alwins-world.de * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, * 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0013 * GNU General Public License for more details. * 0014 * * 0015 * You should have received a copy of the GNU General Public License * 0016 * along with this program; if not, write to the * 0017 * Free Software Foundation, Inc., * 0018 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 0019 ***************************************************************************/ 0020 #include "elogentry.h" 0021 0022 eLog_Entry::eLog_Entry(const svn::LogEntry &old) 0023 : svn::LogEntry(old) 0024 { 0025 } 0026 0027 eLog_Entry::eLog_Entry() 0028 : svn::LogEntry() 0029 { 0030 } 0031 0032 eLog_Entry::~eLog_Entry() 0033 { 0034 } 0035 0036 void eLog_Entry::addCopyTo(const QString ¤t, const QString &target, svn_revnum_t target_rev, char _action, svn_revnum_t from_rev) 0037 { 0038 svn::LogChangePathEntry _entry; 0039 _entry.copyToPath = target; 0040 _entry.path = current; 0041 _entry.copyToRevision = target_rev; 0042 _entry.action = _action; 0043 _entry.copyFromRevision = from_rev; 0044 switch (_action) { 0045 case 'A': 0046 if (!target.isEmpty()) { 0047 _entry.action = 'H'; 0048 } else { 0049 } 0050 break; 0051 case 'D': 0052 break; 0053 case 'R': 0054 break; 0055 case 'M': 0056 break; 0057 default: 0058 break; 0059 } 0060 /* make sure that ALL writing operations are BEFORE deletion of item, 0061 * otherwise search will fail */ 0062 if (_action == 'D') { 0063 changedPaths.push_back(_entry); 0064 } else { 0065 changedPaths.push_front(_entry); 0066 } 0067 }