Changeset 68d1b473e75a…
Parent ba6fc94498bd…
by
Changes to 4 files · Browse files at 68d1b473e75a Showing diff from parent ba6fc94498bd Diff from another changeset...
@@ -3,7 +3,6 @@ #include "TortoiseUtils.h"
#include "StringUtils.h"
#include "PipeUtils.h"
-#include "common.h"
#include "dirstate.h"
#include <shlwapi.h>
|
@@ -8,8 +8,7 @@ PipeUtils.o \
ShellUtils2.o \
StringUtils.o \
- dirstate.o \
- common.o
+ dirstate.o
DEFFILE=ShellExt.def
|
|
@@ -1,54 +0,0 @@ - // CuteHg - Qt4 Dialog Extension of Mercurial
-// Copyright (C) 2009 Stefan Rusek
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, either version 2 of the License, or
-// (at your option) any later version.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License for more details.
-//
-// You should have received a copy of the GNU General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-#include <string>
-#include <shlwapi.h>
-
-
-bool HgFindRoot(char* path, std::string* root)
-{
- char temp1[MAX_PATH];
- char temp2[MAX_PATH];
-
- char* dir = temp1;
- char* other = temp2;
-
- if (!GetFullPathName(path, MAX_PATH, dir, NULL))
- return false;
-
- bool found = false;
- while (dir)
- {
- other = PathCombine(other, dir, ".\\.hg\\store");
- if (found = PathIsDirectory(other))
- break;
-
- // search parent
- if (PathIsRoot(dir))
- dir = NULL;
- else
- {
- char* temp = PathCombine(other, dir, "..");
- other = dir;
- dir = temp;
- }
- }
-
- if (found)
- *root = dir;
- return found;
-}
-
|
|
@@ -1,8 +0,0 @@ - #ifndef _COMMON_H
-#define _COMMON_H
-
-#include <string>
-
-bool HgFindRoot(char* path, std::string* root);
-
-#endif
|
Loading...