# HG changeset patch # User Robert McIntyre # Date 1357731745 0 # Node ID b38744722d75a8544a154981f014bae4a0ba6acb # Parent cb1a44d080db1f5f6d387cf16d7743f3596bcd98 remove defunct c++ and perl code. diff -r cb1a44d080db -r b38744722d75 src/Makefile --- a/src/Makefile Wed Jan 09 11:41:55 2013 +0000 +++ b/src/Makefile Wed Jan 09 11:42:25 2013 +0000 @@ -2,9 +2,3 @@ gcc -I/usr/include -lpipeline hg-wrapper.c -o hg-wrapper clean: rm hg-wrapper - - - -# to build the incorrect cpp version. -#all: -# g++ -I/usr/include hg-wrapper.cpp -o hg-wrapper diff -r cb1a44d080db -r b38744722d75 src/hg-wrapper.cpp --- a/src/hg-wrapper.cpp Wed Jan 09 11:41:55 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -#include -#include -#include -#include -#include - -/** This a simple wrapper script to call - mercurial as a semi-privleged user. */ - -main( int argc, char ** argv){ - std::vector input(argv, argv+argc); - input[0] = std::string("hg"); - std::string command = boost::algorithm::join(input, " "); - setreuid(geteuid(), geteuid()); - setregid(getegid(), getegid()); - return system(command.c_str()); -} diff -r cb1a44d080db -r b38744722d75 src/hg-wrapper.pl --- a/src/hg-wrapper.pl Wed Jan 09 11:41:55 2013 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -#!/usr/bin/perl -wT - -$ENV{"PATH"} = "/usr/bin"; -delete @ENV{qw(IFS CDPATH ENV BASH_ENV PATH)}; - -unshift(@ARGV, "hg"); -exec(@ARGV);