|
|
@ -138,7 +138,7 @@ public:
|
|
|
|
if (Kdesvnsettings::use_external_diff()) {
|
|
|
|
if (Kdesvnsettings::use_external_diff()) {
|
|
|
|
TQString edisp = Kdesvnsettings::external_diff_display();
|
|
|
|
TQString edisp = Kdesvnsettings::external_diff_display();
|
|
|
|
TQStringList wlist = TQStringList::split(" ",edisp);
|
|
|
|
TQStringList wlist = TQStringList::split(" ",edisp);
|
|
|
|
if (wlist.count()>=3 && edisp.tqfind("%1")!=-1 && edisp.tqfind("%2")!=-1) {
|
|
|
|
if (wlist.count()>=3 && edisp.find("%1")!=-1 && edisp.find("%2")!=-1) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -345,7 +345,7 @@ bool SvnActions::getSingleLog(svn::LogEntry&t,const svn::Revision&r,const TQStri
|
|
|
|
svn::LogEntriesMap _m;
|
|
|
|
svn::LogEntriesMap _m;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
svn::cache::ReposLog rl(m_Data->m_Svnclient ,root);
|
|
|
|
svn::cache::ReposLog rl(m_Data->m_Svnclient ,root);
|
|
|
|
if (rl.isValid() && rl.simpleLog(_m,r,r,true) && _m.tqfind(r.revnum())!=_m.end() ) {
|
|
|
|
if (rl.isValid() && rl.simpleLog(_m,r,r,true) && _m.find(r.revnum())!=_m.end() ) {
|
|
|
|
t = _m[r.revnum()];
|
|
|
|
t = _m[r.revnum()];
|
|
|
|
res = true;
|
|
|
|
res = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -357,7 +357,7 @@ bool SvnActions::getSingleLog(svn::LogEntry&t,const svn::Revision&r,const TQStri
|
|
|
|
if (!res) {
|
|
|
|
if (!res) {
|
|
|
|
svn::SharedPointer<svn::LogEntriesMap> log = getLog(r,r,peg,root,true,1);
|
|
|
|
svn::SharedPointer<svn::LogEntriesMap> log = getLog(r,r,peg,root,true,1);
|
|
|
|
if (log) {
|
|
|
|
if (log) {
|
|
|
|
if (log->tqfind(r.revnum())!=log->end()) {
|
|
|
|
if (log->find(r.revnum())!=log->end()) {
|
|
|
|
t = (*log)[r.revnum()];
|
|
|
|
t = (*log)[r.revnum()];
|
|
|
|
res = true;
|
|
|
|
res = true;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -379,7 +379,7 @@ bool SvnActions::singleInfo(const TQString&what,const svn::Revision&_rev,svn::In
|
|
|
|
// working copy
|
|
|
|
// working copy
|
|
|
|
// url = svn::Wc::getUrl(what);
|
|
|
|
// url = svn::Wc::getUrl(what);
|
|
|
|
url = what;
|
|
|
|
url = what;
|
|
|
|
if (url.tqfind("@")!=-1) {
|
|
|
|
if (url.find("@")!=-1) {
|
|
|
|
url+="@BASE";
|
|
|
|
url+="@BASE";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
peg = svn::Revision::UNDEFINED;
|
|
|
|
peg = svn::Revision::UNDEFINED;
|
|
|
@ -676,7 +676,7 @@ TQString SvnActions::getInfo(const TQString& _what,const svn::Revision&rev,const
|
|
|
|
connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&)));
|
|
|
|
connect(this,TQT_SIGNAL(sigExtraLogMsg(const TQString&)),&sdlg,TQT_SLOT(slotExtraMessage(const TQString&)));
|
|
|
|
svn::InfoEntries e;
|
|
|
|
svn::InfoEntries e;
|
|
|
|
entries = (m_Data->m_Svnclient->info(_what+
|
|
|
|
entries = (m_Data->m_Svnclient->info(_what+
|
|
|
|
(_what.tqfind("@")>-1&&!svn::Url::isValid(_what)?"@BASE":""),recursive?svn::DepthInfinity:svn::DepthEmpty,rev,peg));
|
|
|
|
(_what.find("@")>-1&&!svn::Url::isValid(_what)?"@BASE":""),recursive?svn::DepthInfinity:svn::DepthEmpty,rev,peg));
|
|
|
|
} catch (const svn::Exception&e) {
|
|
|
|
} catch (const svn::Exception&e) {
|
|
|
|
emit clientException(e.msg());
|
|
|
|
emit clientException(e.msg());
|
|
|
|
return TQString();
|
|
|
|
return TQString();
|
|
|
@ -1058,14 +1058,14 @@ void SvnActions::procClosed(KProcess*proc)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!proc) return;
|
|
|
|
if (!proc) return;
|
|
|
|
TQMap<KProcess*,TQStringList>::iterator it;
|
|
|
|
TQMap<KProcess*,TQStringList>::iterator it;
|
|
|
|
if ( (it=m_Data->m_tempfilelist.tqfind(proc))!=m_Data->m_tempfilelist.end()) {
|
|
|
|
if ( (it=m_Data->m_tempfilelist.find(proc))!=m_Data->m_tempfilelist.end()) {
|
|
|
|
for (TQStringList::iterator it2 = (*it).begin();
|
|
|
|
for (TQStringList::iterator it2 = (*it).begin();
|
|
|
|
it2 != (*it).end();++it2) {
|
|
|
|
it2 != (*it).end();++it2) {
|
|
|
|
::unlink((*it2).ascii());
|
|
|
|
::unlink((*it2).ascii());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
m_Data->m_tempfilelist.erase(it);
|
|
|
|
m_Data->m_tempfilelist.erase(it);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( (it=m_Data->m_tempdirlist.tqfind(proc))!=m_Data->m_tempdirlist.end()) {
|
|
|
|
if ( (it=m_Data->m_tempdirlist.find(proc))!=m_Data->m_tempdirlist.end()) {
|
|
|
|
for (TQStringList::iterator it2 = (*it).begin();
|
|
|
|
for (TQStringList::iterator it2 = (*it).begin();
|
|
|
|
it2 != (*it).end();++it2) {
|
|
|
|
it2 != (*it).end();++it2) {
|
|
|
|
KIO::NetAccess::del((*it2),0);
|
|
|
|
KIO::NetAccess::del((*it2),0);
|
|
|
@ -1323,7 +1323,7 @@ void SvnActions::dispDiff(const TQByteArray&ex)
|
|
|
|
TQString what = Kdesvnsettings::external_diff_display();
|
|
|
|
TQString what = Kdesvnsettings::external_diff_display();
|
|
|
|
int r = KProcess::Stdin|KProcess::Stderr;
|
|
|
|
int r = KProcess::Stdin|KProcess::Stderr;
|
|
|
|
|
|
|
|
|
|
|
|
if (Kdesvnsettings::use_external_diff() && (what.tqfind("%1")==-1 || what.tqfind("%2")==-1)) {
|
|
|
|
if (Kdesvnsettings::use_external_diff() && (what.find("%1")==-1 || what.find("%2")==-1)) {
|
|
|
|
TQStringList wlist = TQStringList::split(" ",what);
|
|
|
|
TQStringList wlist = TQStringList::split(" ",what);
|
|
|
|
KProcess*proc = new KProcess();
|
|
|
|
KProcess*proc = new KProcess();
|
|
|
|
bool fname_used = false;
|
|
|
|
bool fname_used = false;
|
|
|
@ -2680,7 +2680,7 @@ bool SvnActions::makeIgnoreEntry(SvnItem*which,bool unignore)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
bool result = false;
|
|
|
|
bool result = false;
|
|
|
|
TQStringList lst = TQStringList::split("\n",data);
|
|
|
|
TQStringList lst = TQStringList::split("\n",data);
|
|
|
|
TQStringList::iterator it = lst.tqfind(name);
|
|
|
|
TQStringList::iterator it = lst.find(name);
|
|
|
|
if (it != lst.end()) {
|
|
|
|
if (it != lst.end()) {
|
|
|
|
if (unignore) {
|
|
|
|
if (unignore) {
|
|
|
|
lst.erase(it);
|
|
|
|
lst.erase(it);
|
|
|
@ -2752,7 +2752,7 @@ bool SvnActions::isLockNeeded(SvnItem*which,const svn::Revision&where)
|
|
|
|
svn::PathPropertiesMapList pm = pmp.second;
|
|
|
|
svn::PathPropertiesMapList pm = pmp.second;
|
|
|
|
if (pm.size()>0) {
|
|
|
|
if (pm.size()>0) {
|
|
|
|
svn::PropertiesMap&mp = pm[0].second;
|
|
|
|
svn::PropertiesMap&mp = pm[0].second;
|
|
|
|
if (mp.tqfind("svn:needs-lock")!=mp.end()) {
|
|
|
|
if (mp.find("svn:needs-lock")!=mp.end()) {
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2775,7 +2775,7 @@ TQString SvnActions::searchProperty(TQString&Store, const TQString&property, con
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (pm->size()>0) {
|
|
|
|
if (pm->size()>0) {
|
|
|
|
svn::PropertiesMap&mp = (*pm)[0].second;
|
|
|
|
svn::PropertiesMap&mp = (*pm)[0].second;
|
|
|
|
if (mp.tqfind(property)!=mp.end()) {
|
|
|
|
if (mp.find(property)!=mp.end()) {
|
|
|
|
Store=mp[property];
|
|
|
|
Store=mp[property];
|
|
|
|
return pa;
|
|
|
|
return pa;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2850,7 +2850,7 @@ void SvnActions::slotCancel(bool how)
|
|
|
|
void SvnActions::setContextData(const TQString&aKey,const TQString&aValue)
|
|
|
|
void SvnActions::setContextData(const TQString&aKey,const TQString&aValue)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (aValue.isNull()) {
|
|
|
|
if (aValue.isNull()) {
|
|
|
|
TQMap<TQString,TQString>::iterator it = m_Data->m_contextData.tqfind(aKey);
|
|
|
|
TQMap<TQString,TQString>::iterator it = m_Data->m_contextData.find(aKey);
|
|
|
|
if (it!=m_Data->m_contextData.end()) {
|
|
|
|
if (it!=m_Data->m_contextData.end()) {
|
|
|
|
m_Data->m_contextData.remove(it);
|
|
|
|
m_Data->m_contextData.remove(it);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -2866,7 +2866,7 @@ void SvnActions::clearContextData()
|
|
|
|
|
|
|
|
|
|
|
|
TQString SvnActions::getContextData(const TQString&aKey)const
|
|
|
|
TQString SvnActions::getContextData(const TQString&aKey)const
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (m_Data->m_contextData.tqfind(aKey)!=m_Data->m_contextData.end()) {
|
|
|
|
if (m_Data->m_contextData.find(aKey)!=m_Data->m_contextData.end()) {
|
|
|
|
return m_Data->m_contextData[aKey];
|
|
|
|
return m_Data->m_contextData[aKey];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return TQString();
|
|
|
|
return TQString();
|
|
|
|