bzr crashed with TypeError in format_patch_date(): unsupported operand type(s) for +: 'NoneType' and 'int'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Jelmer Vernooij | ||
bzr (Ubuntu) |
Fix Released
|
Medium
|
Jelmer Vernooij |
Bug Description
I was running bzr diff on my project. I have made a sizable amount of changes to my code before running it.
ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: bzr 2.4.0-3ubuntu1
ProcVersionSign
Uname: Linux 3.0.0-10-generic x86_64
ApportVersion: 1.22.1-0ubuntu2
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.4.0
CommandLine: ['/usr/bin/bzr', 'diff']
CrashDb: bzr
Date: Sun Sep 11 23:43:40 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Kubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110831)
InterpreterPath: /usr/bin/python2.7
Locale: en_GB.UTF-8
PackageArchitec
Platform: Linux-3.
ProcCmdline: /usr/bin/python /usr/bin/bzr diff
ProcEnviron:
SHELL=/bin/bash
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
PythonVersion: 2.7.2
SourcePackage: bzr
Title: bzr crashed with TypeError in format_
UpgradeStatus: No upgrade log present (probably fresh install)
UserEncoding: UTF-8
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
- John A Meinel: Approve
-
Diff: 95 lines (+32/-2)5 files modifiedbzrlib/tests/per_tree/test_get_file_mtime.py (+9/-0)
bzrlib/tests/per_workingtree/test_get_file_mtime.py (+13/-0)
bzrlib/workingtree.py (+6/-1)
bzrlib/workingtree_4.py (+1/-1)
doc/en/release-notes/bzr-2.5.txt (+3/-0)
tags: | removed: need-duplicate-check |
affects: | bzr (Ubuntu) → bzr |
Changed in bzr (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in bzr: | |
milestone: | none → 2.5b2 |
status: | Confirmed → Fix Released |
assignee: | nobody → Jelmer Vernooij (jelmer) |
Changed in bzr (Ubuntu): | |
status: | Triaged → In Progress |
assignee: | nobody → Jelmer Vernooij (jelmer) |
It looks like the problem is that WorkingTree. get_file_ mtime returns None if it can't find a matching entry rather than e.g. raising TimestampUnavai lable.
I think this should be fixed if you run "bzr rm" (no arguments)