diff on modified file in directory moved to newly added directory fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
John A Meinel |
Bug Description
This sequence of commands illustrate bug in 0.15final and bzr.dev:
bzr init
bzr mkdir d
echo spam > d/a
bzr add
bzr ci -m 1
bzr mkdir e
bzr mv d e
echo foo > e/d/a
bzr di
When I try to do see diff I get error:
C:\Temp\111>bzr di
=== added directory 'e'
=== renamed directory 'd' => 'e/d'
=== modified file 'e/d/a'
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\
File "bzrlib\diff.pyc", line 375, in diff_cmd_helper
File "bzrlib\diff.pyc", line 403, in show_diff_trees
File "bzrlib\diff.pyc", line 475, in _show_diff_trees
File "bzrlib\diff.pyc", line 488, in _patch_header_date
File "bzrlib\
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
bzr 0.15.0 on python 2.5.0.final.0 (win32)
arguments: ['C:\\Program Files\\
** please send this report to <email address hidden>
This errors occurs only with dirstate working tree. With knit format -- all OK.
My system is Windows (as usual).
Another user report about this bug in ML.
aLTer wrote:
$ bzr di>d.diff TypeError: unsupported operand type(s) for +:
bzr: ERROR: exceptions.
'NoneType' and 'int'
Traceback (most recent call last): python2. 4/site- packages/ bzrlib/ commands. py", line catch_errors python2. 4/site- packages/ bzrlib/ commands. py", line python2. 4/site- packages/ bzrlib/ commands. py", line **all_cmd_ args) python2. 4/site- packages/ bzrlib/ commands. py", line python2. 4/site- packages/ bzrlib/ builtins. py", line 1438, in run label=old_ label, new_label= new_label) python2. 4/site- packages/ bzrlib/ diff.py" , line 375, in trees=extra_ trees) python2. 4/site- packages/ bzrlib/ diff.py" , line 403, in trees=extra_ trees) python2. 4/site- packages/ bzrlib/ diff.py" , line 474, in python2. 4/site- packages/ bzrlib/ diff.py" , line 488, in format_ patch_date( tree.get_ file_mtime( file_id, path)) python2. 4/site- packages/ bzrlib/ timestamp. py", line secs+offset)
File "/usr/lib/
650, in run_bzr_
return run_bzr(argv)
File "/usr/lib/
612, in run_bzr
ret = run(*run_argv)
File "/usr/lib/
304, in run_argv_aliases
return self.run(
File "/usr/lib/
622, in ignore_pipe
result = func(*args, **kwargs)
File "/usr/lib/
old_
File "/usr/lib/
diff_cmd_helper
extra_
File "/usr/lib/
show_diff_trees
extra_
File "/usr/lib/
_show_diff_trees
old_name = '%s%s\t%s' % (old_label, path,
File "/usr/lib/
_patch_header_date
return timestamp.
File "/usr/lib/
131, in format_patch_date
tm = time.gmtime(
TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
bzr 0.15.0 on python 2.4.4.candidate.0 (linux2)
arguments: ['/usr/bin/bzr', 'di']