ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/GoogleTron/Command.hpp
(Generate patch)

Comparing GoogleTron/Command.hpp (file contents):
Revision 695 by douglas, 2006-03-09T23:42:52-08:00 vs.
Revision 716 by douglas, 2006-03-28T04:49:27-08:00

# Line 14 | Line 14
14   #endif
15  
16   #include <api/locks.hpp>
17 + #include <api/path.hpp>
18   #include <ext/queues.hpp>
19  
20 + #include "Subversion/Client.hpp"
21   #include "Url.hpp"
22  
23   struct Command : public ext::ReferenceCounted {
24 <        const cse::String root;
25 <        operator const cse::String &() { return root; }
24 >        const api::Path root;
25 >        const cse::String path;
26   protected:
27 <        Command(const cse::String &root) : root(root) {}
27 > #ifdef __FreeBSD__
28 >        Command(const cse::String &root) : root(api::Path(root).GetRealPath()), path(root) {}
29 > #else
30 >        Command(const cse::String &root) : root((root.IsEmpty() ? api::Path(_B(".")) : api::Path(root)).GetRealPath()), path(root) {}
31 > #endif
32   };
33  
34   class CommandRunner
35   {
36   protected:
37          const cse::String &sitemap;
32        const cse::String &base;
38          ext::Queue<Url> &queue;
39          api::ThreadMutex &queueLock;
40 <        CommandRunner(const cse::String &sitemap, const cse::String &base, ext::Queue<Url> &queue, api::ThreadMutex &queueLock) : sitemap(sitemap), base(base), queue(queue), queueLock(queueLock) {}
40 >        Subversion::Client client;
41 >        CommandRunner(const cse::String &sitemap, ext::Queue<Url> &queue, api::ThreadMutex &queueLock) : sitemap(sitemap), queue(queue), queueLock(queueLock) {}
42 >        template <typename Type>
43 >        Type GetProperties(const cse::String &property, const cse::String &target);
44 >        cse::String GetPassword(const api::Path &directory);
45   };
46  
47   #endif//_Command_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines