Changeset 1464
- Timestamp:
- Mar 11, 2012, 8:20:18 AM (12 years ago)
- Location:
- branches/0.9-stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9-stable/lib/Directory.cc
r1266 r1464 3 3 /* 4 4 Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson 5 Copyright (C) 2012 Peter Johansson 5 6 6 7 This file is part of svndigest, http://dev.thep.lu.se/svndigest … … 29 30 #include "NodeVisitor.h" 30 31 #include "SVN.h" 32 #include "SVNinfo.h" 31 33 #include "SVNlog.h" 32 34 #include "TinyStats.h" … … 74 76 75 77 SVN* svn=SVN::instance(); 78 std::string mother_url = SVNinfo(path).url(); 79 assert(mother_url.size()); 80 // ensure trailing trailing '/' 81 if (mother_url[mother_url.size()-1]!='/') 82 mother_url.push_back('/'); 76 83 for (list<string>::iterator i=entries.begin(); i!=entries.end(); ++i) 77 84 if ((*i)!=string(".") && (*i)!=string("..") && (*i)!=string(".svn")) { … … 81 88 struct stat nodestat; // C api from sys/stat.h 82 89 lstat(fullpath,&nodestat); // C api from sys/stat.h 83 if (S_ISDIR(nodestat.st_mode)) // C api from sys/stat.h 90 if (S_ISDIR(nodestat.st_mode)) { // C api from sys/stat.h 91 // ignore directory if it is not a daughter of 'path' in repo 92 std::string url = SVNinfo(fullpath).url(); 93 if (mother_url != directory_name(url)) 94 continue; 84 95 daughters_.push_back(new Directory(level_+1,fullpath,local_path())); 96 } 85 97 else 86 98 daughters_.push_back(new File(level_,fullpath,local_path())); -
branches/0.9-stable/test/Makefile.am
r1461 r1464 59 59 60 60 # tests not yet passing are listed here 61 XFAIL_TESTS = traverse_test.sh61 XFAIL_TESTS = 62 62 63 63 noinst_HEADERS = Suite.h -
branches/0.9-stable/test/traverse_test.sh
r1461 r1464 49 49 50 50 $SVN log $rootdir/$daughter 51 SVNCOPYRIGHT_run 0 -v -r $rootdir /.svndigest52 $GREP "^Parsing.*$rootdir " stdout || exit_fail51 SVNCOPYRIGHT_run 0 -v -r $rootdir 52 $GREP "^Parsing.*$rootdir/.svndigest" stdout || exit_fail 53 53 $GREP "^Parsing.*$rootdir/$daughter" stdout && exit_fail 54 54
Note: See TracChangeset
for help on using the changeset viewer.