Mercurial > hg > hg-git
changeset 360:c1fa188046d7
Looks like the latest version of Dulwich returns a tuple here. Let's handle that
author | Mike Blume <mike@loggly.com> |
---|---|
date | Sun, 24 Oct 2010 14:00:32 -0700 |
parents | 1b16872f7c6f |
children | 4e1ac77815c3 |
files | hggit/git_handler.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/hggit/git_handler.py +++ b/hggit/git_handler.py @@ -215,6 +215,10 @@ # work around a timezone format change if int(timezone) % 60 != 0: #pragma: no cover timezone = parse_timezone(timezone) + # Newer versions of Dulwich return a tuple here + if isinstance(timezone, tuple): + timezone, neg_utc = timezone + commmit._commit_timezone_neg_utc = neg_utc else: timezone = -int(timezone) commit.commit_timezone = timezone