##// END OF EJS Templates
merge with stable
Matt Mackall -
r21764:cd3c7939 merge default
parent child Browse files
Show More
@@ -108,7 +108,7 b' class p4_source(converter_source):'
108 cmd = "p4 -G describe -s %s" % change
108 cmd = "p4 -G describe -s %s" % change
109 stdout = util.popen(cmd, mode='rb')
109 stdout = util.popen(cmd, mode='rb')
110 d = marshal.load(stdout)
110 d = marshal.load(stdout)
111 desc = self.recode(d["desc"])
111 desc = self.recode(d.get("desc", ""))
112 shortdesc = desc.split("\n", 1)[0]
112 shortdesc = desc.split("\n", 1)[0]
113 t = '%s %s' % (d["change"], repr(shortdesc)[1:-1])
113 t = '%s %s' % (d["change"], repr(shortdesc)[1:-1])
114 ui.status(util.ellipsis(t, 80) + '\n')
114 ui.status(util.ellipsis(t, 80) + '\n')
@@ -281,7 +281,7 b' def _pushchangeset(pushop):'
281 # ssh: return remote's addchangegroup()
281 # ssh: return remote's addchangegroup()
282 # http: return remote's addchangegroup() or 0 for error
282 # http: return remote's addchangegroup() or 0 for error
283 pushop.ret = pushop.remote.unbundle(cg, remoteheads,
283 pushop.ret = pushop.remote.unbundle(cg, remoteheads,
284 'push')
284 pushop.repo.url())
285 else:
285 else:
286 # we return an integer indicating remote head count
286 # we return an integer indicating remote head count
287 # change
287 # change
@@ -109,8 +109,6 b' class hgweb(object):'
109 # compare changelog size in addition to mtime to catch
109 # compare changelog size in addition to mtime to catch
110 # rollbacks made less than a second ago
110 # rollbacks made less than a second ago
111 if st.st_mtime != self.mtime or st.st_size != self.size:
111 if st.st_mtime != self.mtime or st.st_size != self.size:
112 self.mtime = st.st_mtime
113 self.size = st.st_size
114 r = hg.repository(self.repo.baseui, self.repo.root)
112 r = hg.repository(self.repo.baseui, self.repo.root)
115 self.repo = self._getview(r)
113 self.repo = self._getview(r)
116 self.maxchanges = int(self.config("web", "maxchanges", 10))
114 self.maxchanges = int(self.config("web", "maxchanges", 10))
@@ -121,6 +119,9 b' class hgweb(object):'
121 self.allowpull = self.configbool("web", "allowpull", True)
119 self.allowpull = self.configbool("web", "allowpull", True)
122 encoding.encoding = self.config("web", "encoding",
120 encoding.encoding = self.config("web", "encoding",
123 encoding.encoding)
121 encoding.encoding)
122 # update these last to avoid threads seeing empty settings
123 self.mtime = st.st_mtime
124 self.size = st.st_size
124 if request:
125 if request:
125 self.repo.ui.environ = request.env
126 self.repo.ui.environ = request.env
126
127
@@ -227,7 +227,7 b' Aborting transaction prevents fncache ch'
227 > cmdtable = {}
227 > cmdtable = {}
228 >
228 >
229 > EOF
229 > EOF
230 $ rm "${extpath}c"
230 $ rm -f "${extpath}c"
231 $ touch z
231 $ touch z
232 $ hg ci -qAm z
232 $ hg ci -qAm z
233 transaction abort!
233 transaction abort!
General Comments 0
You need to be logged in to leave comments. Login now