Dates in diff output
Michal Kvasnica
kvasnica at gmail.com
Fri Sep 23 04:27:43 CDT 2005
> I've just fixed up all of our date handling in commands.
>
> http://hg.serpentine.com/mercurial/bos
please note that changeset b47f96a178a3d9437a1367e6813967e8ed1ecf6f
breaks things. going back with 'hg revert -r 5f277e73778f' fixes it.
strange that everything works fine on the 'hg' repo even with the
current tip, but not on mine:
http://control.ee.ethz.ch/~mpt/hg/mpt
$ hg tip
1324:77cd8068dbf4
$ hg log | head
changeset: 1324:77cd8068dbf4
tag: tip
user: mpm at selenic.com
date: Thu Sep 22 23:38:04 2005 -0700
summary: hgweb: pass date tuples around rather than whole changesets
for dates
changeset: 1323:60200b3fc839
user: Bryan O'Sullivan <bos at serpentine.com>
date: Thu Sep 22 23:33:26 2005 -0700
summary: Fix old-http test when no server exists.
$ hg clone http://control.ee.ethz.ch/~mpt/hg/mpt
$ cd mpt
$ hg log | head
** unknown exception encountered, details follow
** report bug details to mercurial at selenic.com
Traceback (most recent call last):
File "/usr/bin/hg", line 13, in ?
commands.run()
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
1994, in run
sys.exit(dispatch(sys.argv[1:]))
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
2135, in dispatch
return d()
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
2120, in <lambda>
d = lambda: func(u, repo, *args, **cmdoptions)
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
1245, in log
for st, rev, fns in changeiter:
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
146, in iterate
fns = fncache.get(rev) or filter(matchfn, getchange(rev)[3])
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
93, in getchange
chcache[rev] = ch = repo.changelog.read(repo.lookup(str(rev)))
File "/usr/lib/python2.4/site-packages/mercurial/changelog.py", line
35, in read
return self.extract(self.revision(node))
File "/usr/lib/python2.4/site-packages/mercurial/changelog.py", line
25, in extract
time = int(date.pop(0))
ValueError: invalid literal for int(): 1119606003.0
$ hg verify
checking changesets
unpacking changeset 893d67a90d9e: invalid literal for int(): 1122197979.0
** unknown exception encountered, details follow
** report bug details to mercurial at selenic.com
Traceback (most recent call last):
File "/usr/bin/hg", line 13, in ?
commands.run()
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
1994, in run
sys.exit(dispatch(sys.argv[1:]))
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
2135, in dispatch
return d()
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
2120, in <lambda>
d = lambda: func(u, repo, *args, **cmdoptions)
File "/usr/lib/python2.4/site-packages/mercurial/commands.py", line
1733, in verify
return repo.verify()
File "/usr/lib/python2.4/site-packages/mercurial/localrepo.py", line
1325, in verify
for f in changes[3]:
UnboundLocalError: local variable 'changes' referenced before assignment
michal
More information about the Mercurial
mailing list