Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 1321:b47f96a178a3
Clean up date and timezone handling.
We used to pass changelog dates around as a "unixtime timezone" string
containing a pair of encoded ints. Now, they get passed around as a
(unixtime, timezone) tuple of numbers, which makes much more sense.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 22 Sep 2005 23:19:47 -0700 |
parents | 5f277e73778f |
children | 57220daf40e9 |
line wrap: on
line diff
--- a/mercurial/commands.py Thu Sep 22 22:46:50 2005 -0700 +++ b/mercurial/commands.py Thu Sep 22 23:19:47 2005 -0700 @@ -264,7 +264,7 @@ if node2: change = repo.changelog.read(node2) mmap2 = repo.manifest.read(change[0]) - date2 = util.datestr(change) + date2 = util.datestr(change[2]) def read(f): return repo.file(f).read(mmap2[f]) else: @@ -282,7 +282,7 @@ change = repo.changelog.read(node1) mmap = repo.manifest.read(change[0]) - date1 = util.datestr(change) + date1 = util.datestr(change[2]) for f in c: to = None @@ -319,7 +319,7 @@ return changes = log.read(changenode) - date = util.datestr(changes) + date = util.datestr(changes[2]) parents = [(log.rev(p), ui.verbose and hex(p) or short(p)) for p in log.parents(changenode)