source: trunk/test/tree.cc @ 18

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

Directory tree created. Use purge() to remove non subversion controlled entries.

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