source: trunk/test/tree.cc @ 12

Last change on this file since 12 was 10, checked in by Jari Häkkinen, 16 years ago

Reading directory structure.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 375 bytes
Line 
1// $Id: tree.cc 10 2005-12-30 11:57:57Z jari $
2
3#include "Directory.h"
4
5#include <string>
6
7int main(const int argc,const char* argv[])
8{ 
9  using namespace theplu::svnstat;
10
11  bool print = (argc>1 && argv[1]==std::string("-p"));
12  bool ok = true;
13
14  Directory tree(std::string("."));
15
16  if (print)
17    tree.print();
18
19  // Jari, purge non subversion files from tree.
20
21  if (print)
22    tree.print();
23
24  return (ok ? 0 : -1);
25}
Note: See TracBrowser for help on using the repository browser.