##// 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 73 if n == "parent": parents.append(v)
74 74
75 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 77 date = tm + " " + str(tz)
78 78 return (parents, author, date, message)
79 79
@@ -1108,7 +1108,8 b' def refresh(ui, repo, **opts):'
1108 1108
1109 1109 def diff(ui, repo, *files, **opts):
1110 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 1113 return 0
1113 1114
1114 1115 def lastsavename(path):
@@ -3249,11 +3249,9 b' def parse(ui, args):'
3249 3249 return (cmd, cmd and i[0] or None, args, options, cmdoptions)
3250 3250
3251 3251 def dispatch(args):
3252 signal.signal(signal.SIGTERM, catchterm)
3253 try:
3254 signal.signal(signal.SIGHUP, catchterm)
3255 except AttributeError:
3256 pass
3252 for name in 'SIGTERM', 'SIGHUP', 'SIGBREAK':
3253 num = getattr(signal, name, None)
3254 if num: signal.signal(num, catchterm)
3257 3255
3258 3256 try:
3259 3257 u = ui.ui()
@@ -419,7 +419,8 b' class hgweb(object):'
419 419 mt = mimetypes.guess_type(f)[0]
420 420 rawtext = text
421 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 425 def lines():
425 426 for l, t in enumerate(text.splitlines(1)):
@@ -20,8 +20,12 b' def pipefilter(s, cmd):'
20 20 '''filter string S through command CMD, returning its output'''
21 21 (pout, pin) = popen2.popen2(cmd, -1, 'b')
22 22 def writer():
23 try:
23 24 pin.write(s)
24 25 pin.close()
26 except IOError, inst:
27 if inst.errno != errno.EPIPE:
28 raise
25 29
26 30 # we should use select instead on UNIX, but this will work on most
27 31 # systems, including Windows
@@ -8,7 +8,7 b" diffline = '#line#'"
8 8 changesetparent = '# parent: #node#'
9 9 changesetchild = '# child: #node#'
10 10 filenodelink = ''
11 filerevision = filerevision-raw.tmpl
11 filerevision = 'Content-Type: #mimetype#\nContent-Disposition: filename=#file#\n\n#raw#'
12 12 fileline = '#line#'
13 13 diffblock = '#lines#'
14 14 filediff = filediff-raw.tmpl
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now