##// END OF EJS Templates
Merge with crew
Thomas Arendsen Hein -
r2100:2b8f887b merge default
parent child Browse files
Show More
@@ -73,7 +73,7 b' class convert_git:'
73 if n == "parent": parents.append(v)
73 if n == "parent": parents.append(v)
74
74
75 tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:]
75 tzs, tzh, tzm = tz[-5:-4] + "1", tz[-4:-2], tz[-2:]
76 tz = int(tzs) * (int(tzh) * 3600 + int(tzm))
76 tz = -int(tzs) * (int(tzh) * 3600 + int(tzm))
77 date = tm + " " + str(tz)
77 date = tm + " " + str(tz)
78 return (parents, author, date, message)
78 return (parents, author, date, message)
79
79
@@ -1108,7 +1108,8 b' def refresh(ui, repo, **opts):'
1108
1108
1109 def diff(ui, repo, *files, **opts):
1109 def diff(ui, repo, *files, **opts):
1110 """diff of the current patch"""
1110 """diff of the current patch"""
1111 repomap[repo].diff(repo, files)
1111 # deep in the dirstate code, the walkhelper method wants a list, not a tuple
1112 repomap[repo].diff(repo, list(files))
1112 return 0
1113 return 0
1113
1114
1114 def lastsavename(path):
1115 def lastsavename(path):
@@ -3249,11 +3249,9 b' def parse(ui, args):'
3249 return (cmd, cmd and i[0] or None, args, options, cmdoptions)
3249 return (cmd, cmd and i[0] or None, args, options, cmdoptions)
3250
3250
3251 def dispatch(args):
3251 def dispatch(args):
3252 signal.signal(signal.SIGTERM, catchterm)
3252 for name in 'SIGTERM', 'SIGHUP', 'SIGBREAK':
3253 try:
3253 num = getattr(signal, name, None)
3254 signal.signal(signal.SIGHUP, catchterm)
3254 if num: signal.signal(num, catchterm)
3255 except AttributeError:
3256 pass
3257
3255
3258 try:
3256 try:
3259 u = ui.ui()
3257 u = ui.ui()
@@ -419,7 +419,8 b' class hgweb(object):'
419 mt = mimetypes.guess_type(f)[0]
419 mt = mimetypes.guess_type(f)[0]
420 rawtext = text
420 rawtext = text
421 if util.binary(text):
421 if util.binary(text):
422 text = "(binary:%s)" % mt
422 text = "(binary:%s)" % (mt or 'data')
423 mt = mt or 'text/plain'
423
424
424 def lines():
425 def lines():
425 for l, t in enumerate(text.splitlines(1)):
426 for l, t in enumerate(text.splitlines(1)):
@@ -20,8 +20,12 b' def pipefilter(s, cmd):'
20 '''filter string S through command CMD, returning its output'''
20 '''filter string S through command CMD, returning its output'''
21 (pout, pin) = popen2.popen2(cmd, -1, 'b')
21 (pout, pin) = popen2.popen2(cmd, -1, 'b')
22 def writer():
22 def writer():
23 pin.write(s)
23 try:
24 pin.close()
24 pin.write(s)
25 pin.close()
26 except IOError, inst:
27 if inst.errno != errno.EPIPE:
28 raise
25
29
26 # we should use select instead on UNIX, but this will work on most
30 # we should use select instead on UNIX, but this will work on most
27 # systems, including Windows
31 # systems, including Windows
@@ -8,7 +8,7 b" diffline = '#line#'"
8 changesetparent = '# parent: #node#'
8 changesetparent = '# parent: #node#'
9 changesetchild = '# child: #node#'
9 changesetchild = '# child: #node#'
10 filenodelink = ''
10 filenodelink = ''
11 filerevision = filerevision-raw.tmpl
11 filerevision = 'Content-Type: #mimetype#\nContent-Disposition: filename=#file#\n\n#raw#'
12 fileline = '#line#'
12 fileline = '#line#'
13 diffblock = '#lines#'
13 diffblock = '#lines#'
14 filediff = filediff-raw.tmpl
14 filediff = filediff-raw.tmpl
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now