Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » TheIde doesn't detect svn properly
Re: TheIde doesn't detect svn properly [message #40020 is a reply to message #40018] Sun, 26 May 2013 19:11 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 326
Registered: July 2009
Senior Member
Hi Honza,

It is hard to show something invisible, that's why I created fake ".svn" directory in $MyApps, to show what part of menu is missing Smile

Regarding missing SVN menu, as far as I know TheIde calls SvnDirs().GetCount() every time context menu is opened (in Ide::Project function).
SvnDirs takes list of directories to search from UPP environment variable (GetVar("UPP")) and I don't see main package directory on this list.

I added some logs to Ide::Project, Ide::SvnDirs and GetUppDirs.

Vector<String> GetUppDirs() {
	RLOG("UPP VAR = " + GetVar("UPP"));
	return SplitDirs(GetVar("UPP"));
}

Vector<String> Ide::SvnDirs()
{
	Vector<String> d = GetUppDirs();
	Vector<String> r;
	for(int i = 0; i < d.GetCount(); i++){
		RLOG("Checking " + d[i]);
		if(IsSvnDir(d[i])){
			RLOG("SVNDIR: " + d[i]);
			r.Add(d[i]);	
		}else{
			RLOG("NOT SVNDIR: " + d[i]);
		}
	}
	return r;
}


Part of Ide::Project:

	RLOG("------- SVN ----------------");
	int c = SvnDirs().GetCount();
	RLOG(Format("Found %d svn dirs", c));
	if(c){
		if(menu.IsMenuBar())
			menu.Add("SVN", THISBACK(ProjectSvn));
		else
			menu.Add("SVN Synchronize everything..", IdeImg::svn(), THISBACK(SyncSvn));
	}


------- SVN ----------------
UPP VAR = /media/1A1890EB1890C763/workspace;/home/zbych/upp/uppsrc;
Checking /media/1A1890EB1890C763/workspace
Directory '/media/1A1890EB1890C763/workspace/.svn' doesn't exist
NOT SVNDIR: /media/1A1890EB1890C763/workspace
Checking /home/zbych/upp/uppsrc
Directory '/home/zbych/upp/uppsrc/.svn' doesn't exist
NOT SVNDIR: /home/zbych/upp/uppsrc
Found 0 svn dirs


As you can see number of returned SVNs is 0 although there is ".svn" in the main package directory.

[Updated on: Sun, 26 May 2013 19:24]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TheIde crashes when there is an error in translation file
Next Topic: BUG with .lay files - 'Z's added
Goto Forum:
  


Current Time: Tue May 14 00:31:41 CEST 2024

Total time taken to generate the page: 0.02412 seconds