Linux server.edchosting.com 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64
LiteSpeed
Server IP : 75.98.162.185 & Your IP : 216.73.216.163
Domains :
Cant Read [ /etc/named.conf ]
User : goons4good
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib64 /
python2.7 /
site-packages /
hgext /
convert /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
15.27
KB
-rw-r--r--
2013-06-01 18:10
__init__.pyc
15.81
KB
-rw-r--r--
2020-03-31 23:33
__init__.pyo
15.81
KB
-rw-r--r--
2020-03-31 23:33
bzr.py
11.03
KB
-rw-r--r--
2013-06-01 18:10
bzr.pyc
9.04
KB
-rw-r--r--
2020-03-31 23:33
bzr.pyo
9.04
KB
-rw-r--r--
2020-03-31 23:33
common.py
14.32
KB
-rw-r--r--
2020-03-31 23:33
common.pyc
20.3
KB
-rw-r--r--
2020-03-31 23:33
common.pyo
20.3
KB
-rw-r--r--
2020-03-31 23:33
convcmd.py
16.83
KB
-rw-r--r--
2013-06-01 18:10
convcmd.pyc
16.78
KB
-rw-r--r--
2020-03-31 23:33
convcmd.pyo
16.78
KB
-rw-r--r--
2020-03-31 23:33
cvs.py
10.03
KB
-rw-r--r--
2013-06-01 18:10
cvs.pyc
8.72
KB
-rw-r--r--
2020-03-31 23:33
cvs.pyo
8.72
KB
-rw-r--r--
2020-03-31 23:33
cvsps.py
30.74
KB
-rw-r--r--
2013-06-01 18:10
cvsps.pyc
20.61
KB
-rw-r--r--
2020-03-31 23:33
cvsps.pyo
20.13
KB
-rw-r--r--
2020-03-31 23:33
darcs.py
7.54
KB
-rw-r--r--
2013-06-01 18:10
darcs.pyc
7.73
KB
-rw-r--r--
2020-03-31 23:33
darcs.pyo
7.73
KB
-rw-r--r--
2020-03-31 23:33
filemap.py
14.42
KB
-rw-r--r--
2013-06-01 18:10
filemap.pyc
11.53
KB
-rw-r--r--
2020-03-31 23:33
filemap.pyo
11.53
KB
-rw-r--r--
2020-03-31 23:33
git.py
9.37
KB
-rw-r--r--
2020-03-31 23:33
git.pyc
10.32
KB
-rw-r--r--
2020-03-31 23:33
git.pyo
10.32
KB
-rw-r--r--
2020-03-31 23:33
gnuarch.py
12.42
KB
-rw-r--r--
2013-06-01 18:10
gnuarch.pyc
10.95
KB
-rw-r--r--
2020-03-31 23:33
gnuarch.pyo
10.95
KB
-rw-r--r--
2020-03-31 23:33
hg.py
14.27
KB
-rw-r--r--
2013-06-01 18:10
hg.pyc
15.07
KB
-rw-r--r--
2020-03-31 23:33
hg.pyo
15.07
KB
-rw-r--r--
2020-03-31 23:33
monotone.py
12.64
KB
-rw-r--r--
2013-06-01 18:10
monotone.pyc
10.97
KB
-rw-r--r--
2020-03-31 23:33
monotone.pyo
10.97
KB
-rw-r--r--
2020-03-31 23:33
p4.py
6.68
KB
-rw-r--r--
2013-06-01 18:10
p4.pyc
6.53
KB
-rw-r--r--
2020-03-31 23:33
p4.pyo
6.53
KB
-rw-r--r--
2020-03-31 23:33
subversion.py
48.98
KB
-rw-r--r--
2013-06-01 18:10
subversion.pyc
38.06
KB
-rw-r--r--
2020-03-31 23:33
subversion.pyo
38.06
KB
-rw-r--r--
2020-03-31 23:33
transport.py
4.99
KB
-rw-r--r--
2013-06-01 18:10
transport.pyc
5.05
KB
-rw-r--r--
2020-03-31 23:33
transport.pyo
5.05
KB
-rw-r--r--
2020-03-31 23:33
Save
Rename
# Perforce source for convert extension. # # Copyright 2009, Frank Kingswood <frank@kingswood-consulting.co.uk> # # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. from mercurial import util from mercurial.i18n import _ from common import commit, converter_source, checktool, NoRepo import marshal import re def loaditer(f): "Yield the dictionary objects generated by p4" try: while True: d = marshal.load(f) if not d: break yield d except EOFError: pass class p4_source(converter_source): def __init__(self, ui, path, rev=None): super(p4_source, self).__init__(ui, path, rev=rev) if "/" in path and not path.startswith('//'): raise NoRepo(_('%s does not look like a P4 repository') % path) checktool('p4', abort=False) self.p4changes = {} self.heads = {} self.changeset = {} self.files = {} self.tags = {} self.lastbranch = {} self.parent = {} self.encoding = "latin_1" self.depotname = {} # mapping from local name to depot name self.re_type = re.compile( "([a-z]+)?(text|binary|symlink|apple|resource|unicode|utf\d+)" "(\+\w+)?$") self.re_keywords = re.compile( r"\$(Id|Header|Date|DateTime|Change|File|Revision|Author)" r":[^$\n]*\$") self.re_keywords_old = re.compile("\$(Id|Header):[^$\n]*\$") self._parse(ui, path) def _parse_view(self, path): "Read changes affecting the path" cmd = 'p4 -G changes -s submitted %s' % util.shellquote(path) stdout = util.popen(cmd, mode='rb') for d in loaditer(stdout): c = d.get("change", None) if c: self.p4changes[c] = True def _parse(self, ui, path): "Prepare list of P4 filenames and revisions to import" ui.status(_('reading p4 views\n')) # read client spec or view if "/" in path: self._parse_view(path) if path.startswith("//") and path.endswith("/..."): views = {path[:-3]:""} else: views = {"//": ""} else: cmd = 'p4 -G client -o %s' % util.shellquote(path) clientspec = marshal.load(util.popen(cmd, mode='rb')) views = {} for client in clientspec: if client.startswith("View"): sview, cview = clientspec[client].split() self._parse_view(sview) if sview.endswith("...") and cview.endswith("..."): sview = sview[:-3] cview = cview[:-3] cview = cview[2:] cview = cview[cview.find("/") + 1:] views[sview] = cview # list of changes that affect our source files self.p4changes = self.p4changes.keys() self.p4changes.sort(key=int) # list with depot pathnames, longest first vieworder = views.keys() vieworder.sort(key=len, reverse=True) # handle revision limiting startrev = self.ui.config('convert', 'p4.startrev', default=0) self.p4changes = [x for x in self.p4changes if ((not startrev or int(x) >= int(startrev)) and (not self.rev or int(x) <= int(self.rev)))] # now read the full changelists to get the list of file revisions ui.status(_('collecting p4 changelists\n')) lastid = None for change in self.p4changes: cmd = "p4 -G describe -s %s" % change stdout = util.popen(cmd, mode='rb') d = marshal.load(stdout) desc = self.recode(d["desc"]) shortdesc = desc.split("\n", 1)[0] t = '%s %s' % (d["change"], repr(shortdesc)[1:-1]) ui.status(util.ellipsis(t, 80) + '\n') if lastid: parents = [lastid] else: parents = [] date = (int(d["time"]), 0) # timezone not set c = commit(author=self.recode(d["user"]), date=util.datestr(date, '%Y-%m-%d %H:%M:%S %1%2'), parents=parents, desc=desc, branch='', extra={"p4": change}) files = [] i = 0 while ("depotFile%d" % i) in d and ("rev%d" % i) in d: oldname = d["depotFile%d" % i] filename = None for v in vieworder: if oldname.startswith(v): filename = views[v] + oldname[len(v):] break if filename: files.append((filename, d["rev%d" % i])) self.depotname[filename] = oldname i += 1 self.changeset[change] = c self.files[change] = files lastid = change if lastid: self.heads = [lastid] def getheads(self): return self.heads def getfile(self, name, rev): cmd = 'p4 -G print %s' \ % util.shellquote("%s#%s" % (self.depotname[name], rev)) stdout = util.popen(cmd, mode='rb') mode = None contents = "" keywords = None for d in loaditer(stdout): code = d["code"] data = d.get("data") if code == "error": raise IOError(d["generic"], data) elif code == "stat": p4type = self.re_type.match(d["type"]) if p4type: mode = "" flags = (p4type.group(1) or "") + (p4type.group(3) or "") if "x" in flags: mode = "x" if p4type.group(2) == "symlink": mode = "l" if "ko" in flags: keywords = self.re_keywords_old elif "k" in flags: keywords = self.re_keywords elif code == "text" or code == "binary": contents += data if mode is None: raise IOError(0, "bad stat") if keywords: contents = keywords.sub("$\\1$", contents) if mode == "l" and contents.endswith("\n"): contents = contents[:-1] return contents, mode def getchanges(self, rev): return self.files[rev], {} def getcommit(self, rev): return self.changeset[rev] def gettags(self): return self.tags def getchangedfiles(self, rev, i): return sorted([x[0] for x in self.files[rev]])