##// END OF EJS Templates
merge with crew-stable
Dirkjan Ochtman -
r7871:cdbe19ab merge default
parent child Browse files
Show More
@@ -51,7 +51,7 b' filemerge.executable=/Developer/Applicat'
51 filemerge.args=-left $other -right $local -ancestor $base -merge $output
51 filemerge.args=-left $other -right $local -ancestor $base -merge $output
52 filemerge.gui=True
52 filemerge.gui=True
53
53
54 beyondcompare3.args=$local $other $base $output /ro /lefttitle=local /centerfile=base /righttitle=other /automerge /reviewconflicts /solo
54 beyondcompare3.args=$local $other $base $output /ro /lefttitle=local /centertitle=base /righttitle=other /automerge /reviewconflicts /solo
55 beyondcompare3.regkey=Software\Scooter Software\Beyond Compare 3
55 beyondcompare3.regkey=Software\Scooter Software\Beyond Compare 3
56 beyondcompare3.regname=ExePath
56 beyondcompare3.regname=ExePath
57 beyondcompare3.gui=True
57 beyondcompare3.gui=True
@@ -66,7 +66,7 b' class p4_source(converter_source):'
66 else:
66 else:
67 cmd = "p4 -G client -o '%s'" % path
67 cmd = "p4 -G client -o '%s'" % path
68 clientspec = marshal.load(util.popen(cmd))
68 clientspec = marshal.load(util.popen(cmd))
69
69
70 views = {}
70 views = {}
71 for client in clientspec:
71 for client in clientspec:
72 if client.startswith("View"):
72 if client.startswith("View"):
@@ -89,8 +89,8 b' class p4_source(converter_source):'
89
89
90 # handle revision limiting
90 # handle revision limiting
91 startrev = self.ui.config('convert', 'p4.startrev', default=0)
91 startrev = self.ui.config('convert', 'p4.startrev', default=0)
92 self.p4changes = [x for x in self.p4changes
92 self.p4changes = [x for x in self.p4changes
93 if ((not startrev or int(x) >= int(startrev)) and
93 if ((not startrev or int(x) >= int(startrev)) and
94 (not self.rev or int(x) <= int(self.rev)))]
94 (not self.rev or int(x) <= int(self.rev)))]
95
95
96 # now read the full changelists to get the list of file revisions
96 # now read the full changelists to get the list of file revisions
@@ -110,7 +110,7 b' class p4_source(converter_source):'
110 parents = [lastid]
110 parents = [lastid]
111 else:
111 else:
112 parents = []
112 parents = []
113
113
114 date = (int(d["time"]), 0) # timezone not set
114 date = (int(d["time"]), 0) # timezone not set
115 c = commit(author=self.recode(d["user"]), date=util.datestr(date),
115 c = commit(author=self.recode(d["user"]), date=util.datestr(date),
116 parents=parents, desc=desc, branch='', extra={"p4": change})
116 parents=parents, desc=desc, branch='', extra={"p4": change})
@@ -131,7 +131,7 b' class p4_source(converter_source):'
131 self.changeset[change] = c
131 self.changeset[change] = c
132 self.files[change] = files
132 self.files[change] = files
133 lastid = change
133 lastid = change
134
134
135 if lastid:
135 if lastid:
136 self.heads = [lastid]
136 self.heads = [lastid]
137
137
@@ -408,7 +408,7 b' class HTTPResponse(httplib.HTTPResponse)'
408 # close the connection as protocol synchronisation is
408 # close the connection as protocol synchronisation is
409 # probably lost
409 # probably lost
410 self.close()
410 self.close()
411 raise IncompleteRead(value)
411 raise httplib.IncompleteRead(value)
412 if chunk_left == 0:
412 if chunk_left == 0:
413 break
413 break
414 if amt is None:
414 if amt is None:
@@ -1273,14 +1273,14 b" if os.name == 'nt':"
1273 def find_exe(command):
1273 def find_exe(command):
1274 '''Find executable for command searching like cmd.exe does.
1274 '''Find executable for command searching like cmd.exe does.
1275 If command is a basename then PATH is searched for command.
1275 If command is a basename then PATH is searched for command.
1276 PATH isn't searched if command is an absolute or relative path.
1276 PATH isn't searched if command is an absolute or relative path.
1277 An extension from PATHEXT is found and added if not present.
1277 An extension from PATHEXT is found and added if not present.
1278 If command isn't found None is returned.'''
1278 If command isn't found None is returned.'''
1279 pathext = os.environ.get('PATHEXT', '.COM;.EXE;.BAT;.CMD')
1279 pathext = os.environ.get('PATHEXT', '.COM;.EXE;.BAT;.CMD')
1280 pathexts = [ext for ext in pathext.lower().split(os.pathsep)]
1280 pathexts = [ext for ext in pathext.lower().split(os.pathsep)]
1281 if os.path.splitext(command)[1].lower() in pathexts:
1281 if os.path.splitext(command)[1].lower() in pathexts:
1282 pathexts = ['']
1282 pathexts = ['']
1283
1283
1284 def findexisting(pathcommand):
1284 def findexisting(pathcommand):
1285 'Will append extension (if needed) and return existing file'
1285 'Will append extension (if needed) and return existing file'
1286 for ext in pathexts:
1286 for ext in pathexts:
@@ -1291,7 +1291,7 b" if os.name == 'nt':"
1291
1291
1292 if os.sep in command:
1292 if os.sep in command:
1293 return findexisting(command)
1293 return findexisting(command)
1294
1294
1295 for path in os.environ.get('PATH', '').split(os.pathsep):
1295 for path in os.environ.get('PATH', '').split(os.pathsep):
1296 executable = findexisting(os.path.join(path, command))
1296 executable = findexisting(os.path.join(path, command))
1297 if executable is not None:
1297 if executable is not None:
@@ -1465,11 +1465,11 b' else:'
1465 def find_exe(command):
1465 def find_exe(command):
1466 '''Find executable for command searching like which does.
1466 '''Find executable for command searching like which does.
1467 If command is a basename then PATH is searched for command.
1467 If command is a basename then PATH is searched for command.
1468 PATH isn't searched if command is an absolute or relative path.
1468 PATH isn't searched if command is an absolute or relative path.
1469 If command isn't found None is returned.'''
1469 If command isn't found None is returned.'''
1470 if sys.platform == 'OpenVMS':
1470 if sys.platform == 'OpenVMS':
1471 return command
1471 return command
1472
1472
1473 def findexisting(executable):
1473 def findexisting(executable):
1474 'Will return executable if existing file'
1474 'Will return executable if existing file'
1475 if os.path.exists(executable):
1475 if os.path.exists(executable):
@@ -1478,7 +1478,7 b' else:'
1478
1478
1479 if os.sep in command:
1479 if os.sep in command:
1480 return findexisting(command)
1480 return findexisting(command)
1481
1481
1482 for path in os.environ.get('PATH', '').split(os.pathsep):
1482 for path in os.environ.get('PATH', '').split(os.pathsep):
1483 executable = findexisting(os.path.join(path, command))
1483 executable = findexisting(os.path.join(path, command))
1484 if executable is not None:
1484 if executable is not None:
General Comments 0
You need to be logged in to leave comments. Login now