[Bug 847435] Re: bzr crashed with TypeError in format_patch_date(): unsupported operand type(s) for +: 'NoneType' and 'int'

Jelmer Vernooij 847435 at bugs.launchpad.net
Sun Sep 11 23:02:57 UTC 2011


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
TimestampUnavailable.

I think this should be fixed if you run "bzr rm" (no arguments)

** Patch added: "wt-get-file-mtime.diff"
   https://bugs.launchpad.net/ubuntu/+source/bzr/+bug/847435/+attachment/2388887/+files/wt-get-file-mtime.diff

** Changed in: bzr (Ubuntu)
       Status: New => Triaged

** Changed in: bzr (Ubuntu)
       Status: Triaged => Confirmed

** Changed in: bzr (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/847435

Title:
  bzr crashed with TypeError in format_patch_date(): unsupported operand
  type(s) for +: 'NoneType' and 'int'

Status in “bzr” package in Ubuntu:
  Confirmed

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
  ProcVersionSignature: Ubuntu 3.0.0-10.16-generic 3.0.4
  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
  PackageArchitecture: all
  Platform: Linux-3.0.0-10-generic-x86_64-with-Ubuntu-11.10-oneiric
  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_patch_date(): unsupported operand type(s) for +: 'NoneType' and 'int'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserEncoding: UTF-8
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bzr/+bug/847435/+subscriptions




More information about the foundations-bugs mailing list