test.sh error: cannot move directory 'sub1' into a subdirectory of itself, 'sub1'

Daniel Robitaille robitaille at gmail.com
Fri Apr 15 06:35:02 BST 2005


After succesfully testing bazar-ng on my Hoary box, I tried tonight
the "test.sh" test suite on a Mandrake 10.1 machine using the latest
developmental revision (258), and I'm getting an error during one of
the test "bzr rename".

Here are the content of the bzr-test.log and $HOME/.bzr.log files
(slighty modified to remove internal machine hostnames and e-mail
addresses):

============
bzr-test.log
============

+ trap quitter ERR
+ cd bzr-test.tmp
+ rm -rf .bzr
+ mkdir branch1
+ cd branch1
+ bzr help
Bazaar-NG -- a free distributed version-control tool

**WARNING: THIS IS AN UNSTABLE DEVELOPMENT VERSION**

Current limitation include:

* Metadata format is not stable yet -- you may need to
  discard history in the future.

* Insufficient error handling.

* Many commands unimplemented or partially implemented.

* Space-inefficient storage.

* No merge operators yet.

Interesting commands::

  bzr help [COMMAND]
       Show help screen
  bzr version
       Show software version/licence/non-warranty.
  bzr init
       Start versioning the current directory
  bzr add FILE...
       Make files versioned.
  bzr log
       Show revision history.
  bzr diff
       Show changes from last revision to working copy.
  bzr commit -m 'MESSAGE'
       Store current state as new revision.
  bzr export REVNO DESTINATION
       Export the branch state at a previous version.
  bzr status
       Show summary of pending changes.
  bzr remove FILE...
       Make a file not versioned.
  bzr info
       Show statistics about this branch.

+ bzr version
bzr (bazaar-ng) 0.0.3
Copyright 2005 Canonical Development Ltd.
http://bazaar-ng.org/

bzr comes with ABSOLUTELY NO WARRANTY.  bzr is free software, and
you may use, modify and redistribute it under the terms of the GNU 
General Public License version 2 or later.
+ bzr pants
bzr: error: unknown command 'pants'
(see $HOME/.bzr.log for debug information)
+ bzr init
+ echo 'hello world'
+ bzr unknowns
test.txt
++ bzr unknowns
+ '[' test.txt = test.txt ']'
+ bzr status --all
+ diff -u - status.tmp
--- -	2005-04-14 22:21:09.172166000 -0700
+++ status.tmp	2005-04-14 22:21:09.162571632 -0700
@@ -1,2 +1,2 @@
-?       status.tmp
+I       status.tmp
 ?       test.txt
+ bzr rename test.txt new-test.txt
bzr: error: can't rename: old name 'test.txt' is not versioned
(see $HOME/.bzr.log for debug information)
+ bzr add test.txt
++ bzr unknowns
+ '[' -z '' ']'
+ bzr rename test.txt newname.txt
test.txt => newname.txt
++ bzr status
+ '[' 'A       newname.txt' = 'A       newname.txt' ']'
++ bzr revno
+ '[' 0 = 0 ']'
+ bzr commit -m 'add first revision'
++ bzr revno
+ '[' 1 = 1 ']'
+ mkdir sub1
+ bzr rename newname.txt sub1
bzr: error: can't rename: new working file 'sub1' already exists
(see $HOME/.bzr.log for debug information)
+ bzr rename newname.txt sub1/foo.txt
bzr: error: can't determine destination directory id for 'sub1'
(see $HOME/.bzr.log for debug information)
+ bzr add sub1
+ bzr rename newname.txt sub1
bzr: error: can't rename: new working file 'sub1' already exists
(see $HOME/.bzr.log for debug information)
+ bzr rename newname.txt sub1/foo.txt
newname.txt => sub1/foo.txt
+ '[' -f sub1/foo.txt ']'
+ '[' '!' -f newname.txt ']'
+ bzr rename sub1/foo.txt newname.txt
sub1/foo.txt => newname.txt
+ '[' -f newname.txt ']'
+ bzr rename newname.txt sub1/foo.txt
newname.txt => sub1/foo.txt
+ bzr rename sub1/foo.txt sub1/bar.txt
sub1/foo.txt => sub1/bar.txt
+ cd sub1
+ mkdir sub2
+ bzr add sub2
+ bzr rename bar.txt sub2/bar.txt
sub1/bar.txt => sub1/sub2/bar.txt
+ cd sub2
+ bzr rename bar.txt ../../bar.txt
sub1/sub2/bar.txt => bar.txt
+ cd ../../
+ bzr commit -m 'more renames'
++ bzr revno
+ '[' 2 = 2 ']'
++ bzr cat -r 1 newname.txt
+ '[' 'hello world' = 'hello world' ']'
+ bzr rename sub1 sub1/knotted-up
bzr: error: cannot move directory 'sub1' into a subdirectory of itself, 'sub1'
(see $HOME/.bzr.log for debug information)
+ cd ..
+ '[' -d branch2 ']'
+ cp -al branch1 branch2
+ cd branch2
+ bzr log
----------------------------------------
revno: 1
committer: Daniel Robitaille <xxxxxxxxxxxxxxxx>
timestamp: Thu 2005-04-14 22:21:09 -0700
message:
  add first revision
----------------------------------------
revno: 2
committer: Daniel Robitaille <xxxxxxxxxxxxxxxxx>
timestamp: Thu 2005-04-14 22:21:10 -0700
message:
  more renames
++ bzr revno
+ '[' 2 = 2 ']'
+ echo 'added in branch2'
+ bzr add new-in-2.txt
+ bzr commit -m 'add file to branch 2 only'
++ bzr revno
+ '[' 3 = 3 ']'
+ cd ../branch1
++ bzr revno
+ '[' 3 = 2 ']'
++ quitter
++ echo 'tests failed, look in bzr-test.log'
++ exit 2


===========
$HOME/.bzr.log 
===========

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to bazaar-ng at lists.canonical.com

[14142] bzr 0.0.4pre invoked on python 2.3.4.final.0 (linux2)
[14142]   arguments: ['./bzr', '--version']
[14142]   working dir: /home/rdr/bin_linux/bzr.dev
[14142]   got option u'--version'
[14142] finished, 0.080u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:08 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'help']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:08 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'version']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:08 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'pants']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
* raising ("unknown command 'pants'", [])
bzr: error: unknown command 'pants'
Traceback (most recent call last):
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 992, in main
    ret = run_bzr(argv)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 941, in run_bzr
    bailout("unknown command " + `cmd`)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/errors.py", line 38, in bailout
    raise ex
BzrError: ("unknown command 'pants'", [])
(see $HOME/.bzr.log for debug information)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:08 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'init']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
created control directory in /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:08 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'unknowns']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 1 items in 0.001465
search for unknowns in ''
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.020 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'unknowns']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 1 items in 0.001846
search for unknowns in ''
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'status', '--all']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
  got option '--all'
loaded inventory of 1 items in 0.001470
   diff pairwise None
                 ('status.tmp', 'I', 'file', None)
   diff pairwise None
                 ('test.txt', '?', 'file', None)
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'test.txt', 'new-test.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 1 items in 0.001535
lookup path ['test.txt']
* raising ("can't rename: old name 'test.txt' is not versioned", [])
bzr: error: can't rename: old name 'test.txt' is not versioned
Traceback (most recent call last):
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 992, in main
    ret = run_bzr(argv)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 978, in run_bzr
    return cmd_handler(**cmdargs) or 0
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 226,
in cmd_rename
    b.rename_one(b.relpath(from_name), b.relpath(to_name))
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/branch.py", line 724, in rename_one
    bailout("can't rename: old name %r is not versioned" % from_rel)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/errors.py", line 38, in bailout
    raise ex
BzrError: ("can't rename: old name 'test.txt' is not versioned", [])
(see $HOME/.bzr.log for debug information)
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'add', 'test.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 1 items in 0.001479
loaded inventory of 1 items in 0.000252
smart add of 'test.txt'
lookup path ['test.txt']
lookup path []
added 'test.txt' kind 'file'
file_id={test.txt-20050415052109-45097a4ea09b0e5168a2da7e}
wrote working inventory
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'unknowns']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 2 items in 0.001665
search for unknowns in ''
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'test.txt', 'newname.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 2 items in 0.001645
lookup path ['test.txt']
lookup path ['newname.txt']
lookup path []
rename_one:
  file_id    {test.txt-20050415052109-45097a4ea09b0e5168a2da7e}
  from_rel   'test.txt'
  to_rel     'newname.txt'
  to_dir     ''
  to_dir_id  {TREE_ROOT}
wrote working inventory
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'status']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 2 items in 0.001658
   diff pairwise None
                 ('newname.txt', 'V', 'file',
'test.txt-20050415052109-45097a4ea09b0e5168a2da7e')
     extra entry in new-tree sequence
   diff pairwise None
                 ('status.tmp', 'I', 'file', None)
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'revno']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'commit', '-m', 'add first revision']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 2 items in 0.001662
commit prep file
/home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1/newname.txt, id
'test.txt-20050415052109-45097a4ea09b0e5168a2da7e'
add store entry 'newname.txt-20050415052109-d3b5d23fa2ada29a7bf63654'
    stored with text_id {newname.txt-20050415052109-d3b5d23fa2ada29a7bf63654}
add store entry
'xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052109-6b79f952a479593a968c6fda'
new inventory_id is
{xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052109-6b79f952a479593a968c6fda}
wrote working inventory
building commit log message
add store entry
'xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052109-6b79f952a479593a968c6fda'
new revision_id is
{xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052109-6b79f952a479593a968c6fda}
committing patch r1
append to revision-history
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.020 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'revno']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'newname.txt', 'sub1']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 2 items in 0.001663
* raising ("can't rename: new working file 'sub1' already exists", [])
bzr: error: can't rename: new working file 'sub1' already exists
Traceback (most recent call last):
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 992, in main
    ret = run_bzr(argv)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 978, in run_bzr
    return cmd_handler(**cmdargs) or 0
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 226,
in cmd_rename
    b.rename_one(b.relpath(from_name), b.relpath(to_name))
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/branch.py", line 720, in rename_one
    bailout("can't rename: new working file %r already exists" % to_rel)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/errors.py", line 38, in bailout
    raise ex
BzrError: ("can't rename: new working file 'sub1' already exists", [])
(see $HOME/.bzr.log for debug information)
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:09 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'newname.txt',
'sub1/foo.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 2 items in 0.001660
lookup path ['newname.txt']
lookup path ['sub1', 'foo.txt']
lookup path ['sub1']
* raising ("can't determine destination directory id for 'sub1'", [])
bzr: error: can't determine destination directory id for 'sub1'
Traceback (most recent call last):
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 992, in main
    ret = run_bzr(argv)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 978, in run_bzr
    return cmd_handler(**cmdargs) or 0
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 226,
in cmd_rename
    b.rename_one(b.relpath(from_name), b.relpath(to_name))
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/branch.py", line 732, in rename_one
    bailout("can't determine destination directory id for %r" % to_dir)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/errors.py", line 38, in bailout
    raise ex
BzrError: ("can't determine destination directory id for 'sub1'", [])
(see $HOME/.bzr.log for debug information)
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'add', 'sub1']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 2 items in 0.001657
loaded inventory of 2 items in 0.000421
smart add of 'sub1'
lookup path ['sub1']
lookup path []
added 'sub1' kind 'directory'
file_id={sub1-20050415052110-b78ac740534ebce374d9e964}
wrote working inventory
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'newname.txt', 'sub1']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 3 items in 0.001765
* raising ("can't rename: new working file 'sub1' already exists", [])
bzr: error: can't rename: new working file 'sub1' already exists
Traceback (most recent call last):
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 992, in main
    ret = run_bzr(argv)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 978, in run_bzr
    return cmd_handler(**cmdargs) or 0
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 226,
in cmd_rename
    b.rename_one(b.relpath(from_name), b.relpath(to_name))
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/branch.py", line 720, in rename_one
    bailout("can't rename: new working file %r already exists" % to_rel)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/errors.py", line 38, in bailout
    raise ex
BzrError: ("can't rename: new working file 'sub1' already exists", [])
(see $HOME/.bzr.log for debug information)
finished, 0.060u/0.000s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'newname.txt',
'sub1/foo.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 3 items in 0.001781
lookup path ['newname.txt']
lookup path ['sub1', 'foo.txt']
lookup path ['sub1']
rename_one:
  file_id    {test.txt-20050415052109-45097a4ea09b0e5168a2da7e}
  from_rel   'newname.txt'
  to_rel     'sub1/foo.txt'
  to_dir     'sub1'
  to_dir_id  {sub1-20050415052110-b78ac740534ebce374d9e964}
wrote working inventory
finished, 0.060u/0.000s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'sub1/foo.txt',
'newname.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 3 items in 0.001791
lookup path ['sub1', 'foo.txt']
lookup path ['newname.txt']
lookup path []
rename_one:
  file_id    {test.txt-20050415052109-45097a4ea09b0e5168a2da7e}
  from_rel   'sub1/foo.txt'
  to_rel     'newname.txt'
  to_dir     ''
  to_dir_id  {TREE_ROOT}
wrote working inventory
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'newname.txt',
'sub1/foo.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 3 items in 0.001756
lookup path ['newname.txt']
lookup path ['sub1', 'foo.txt']
lookup path ['sub1']
rename_one:
  file_id    {test.txt-20050415052109-45097a4ea09b0e5168a2da7e}
  from_rel   'newname.txt'
  to_rel     'sub1/foo.txt'
  to_dir     'sub1'
  to_dir_id  {sub1-20050415052110-b78ac740534ebce374d9e964}
wrote working inventory
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'sub1/foo.txt',
'sub1/bar.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 3 items in 0.001783
lookup path ['sub1', 'foo.txt']
lookup path ['sub1', 'bar.txt']
lookup path ['sub1']
rename_one:
  file_id    {test.txt-20050415052109-45097a4ea09b0e5168a2da7e}
  from_rel   'sub1/foo.txt'
  to_rel     'sub1/bar.txt'
  to_dir     'sub1'
  to_dir_id  {sub1-20050415052110-b78ac740534ebce374d9e964}
wrote working inventory
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'add', 'sub2']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1/sub1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 3 items in 0.001784
loaded inventory of 3 items in 0.000536
smart add of 'sub2'
lookup path ['sub1', 'sub2']
lookup path ['sub1']
added 'sub1/sub2' kind 'directory'
file_id={sub2-20050415052110-218b05f65360dde45450a4ff}
wrote working inventory
finished, 0.060u/0.000s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'bar.txt', 'sub2/bar.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1/sub1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 4 items in 0.001873
lookup path ['sub1', 'bar.txt']
lookup path ['sub1', 'sub2', 'bar.txt']
lookup path ['sub1', 'sub2']
rename_one:
  file_id    {test.txt-20050415052109-45097a4ea09b0e5168a2da7e}
  from_rel   'sub1/bar.txt'
  to_rel     'sub1/sub2/bar.txt'
  to_dir     'sub1/sub2'
  to_dir_id  {sub2-20050415052110-218b05f65360dde45450a4ff}
wrote working inventory
finished, 0.060u/0.000s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'bar.txt', '../../bar.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1/sub1/sub2
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 4 items in 0.001884
lookup path ['sub1', 'sub2', 'bar.txt']
lookup path ['bar.txt']
lookup path []
rename_one:
  file_id    {test.txt-20050415052109-45097a4ea09b0e5168a2da7e}
  from_rel   'sub1/sub2/bar.txt'
  to_rel     'bar.txt'
  to_dir     ''
  to_dir_id  {TREE_ROOT}
wrote working inventory
finished, 0.060u/0.000s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'commit', '-m', 'more renames']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 4 items in 0.001887
commit prep file
/home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1/bar.txt, id
'test.txt-20050415052109-45097a4ea09b0e5168a2da7e'
    unchanged from previous text_id
{newname.txt-20050415052109-d3b5d23fa2ada29a7bf63654}
commit prep file
/home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1/sub1, id
'sub1-20050415052110-b78ac740534ebce374d9e964'
commit prep file
/home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1/sub1/sub2, id
'sub2-20050415052110-218b05f65360dde45450a4ff'
add store entry
'xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052110-1304e4d7a2863badef595410'
new inventory_id is
{xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052110-1304e4d7a2863badef595410}
wrote working inventory
building commit log message
add store entry
'xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052110-1304e4d7a2863badef595410'
new revision_id is
{xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052110-1304e4d7a2863badef595410}
committing patch r2
append to revision-history
finished, 0.070u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:10 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'revno']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:11 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'cat', '-r', '1', 'newname.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
lookup path ['newname.txt']
  get fileid{test.txt-20050415052109-45097a4ea09b0e5168a2da7e} from
<bzrlib.tree.RevisionTree instance at 0x40612e0c>
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:11 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'rename', 'sub1', 'sub1/knotted-up']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 4 items in 0.001869
lookup path ['sub1']
lookup path ['sub1', 'knotted-up']
lookup path ['sub1']
rename_one:
  file_id    {sub1-20050415052110-b78ac740534ebce374d9e964}
  from_rel   'sub1'
  to_rel     'sub1/knotted-up'
  to_dir     'sub1'
  to_dir_id  {sub1-20050415052110-b78ac740534ebce374d9e964}
* raising ("cannot move directory 'sub1' into a subdirectory of
itself, 'sub1'", [])
bzr: error: cannot move directory 'sub1' into a subdirectory of itself, 'sub1'
Traceback (most recent call last):
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 992, in main
    ret = run_bzr(argv)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 978, in run_bzr
    return cmd_handler(**cmdargs) or 0
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/commands.py", line 226,
in cmd_rename
    b.rename_one(b.relpath(from_name), b.relpath(to_name))
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/branch.py", line 741, in rename_one
    inv.rename(file_id, to_dir_id, to_tail)
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/inventory.py", line 615, in rename
    bailout("cannot move directory %r into a subdirectory of itself, %r"
  File "/home/rdr/bin_linux/bzr-0.0.3/bzrlib/errors.py", line 38, in bailout
    raise ex
BzrError: ("cannot move directory 'sub1' into a subdirectory of
itself, 'sub1'", [])
(see $HOME/.bzr.log for debug information)
finished, 0.060u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:11 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'log']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:11 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'revno']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:11 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'add', 'new-in-2.txt']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 4 items in 0.001877
loaded inventory of 4 items in 0.000630
smart add of 'new-in-2.txt'
lookup path ['new-in-2.txt']
lookup path []
added 'new-in-2.txt' kind 'file'
file_id={new-in-2.txt-20050415052111-63e5fdea158d4b653ac67f3d}
wrote working inventory
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:11 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'commit', '-m', 'add file to
branch 2 only']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2
  platform: linux2
  python: (2, 3, 4, 'final', 0)
loaded inventory of 5 items in 0.001968
commit prep file
/home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2/bar.txt, id
'test.txt-20050415052109-45097a4ea09b0e5168a2da7e'
    unchanged from previous text_id
{newname.txt-20050415052109-d3b5d23fa2ada29a7bf63654}
commit prep file
/home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2/new-in-2.txt, id
'new-in-2.txt-20050415052111-63e5fdea158d4b653ac67f3d'
add store entry 'new-in-2.txt-20050415052111-dd0bcef896b43ffbb58adea0'
    stored with text_id {new-in-2.txt-20050415052111-dd0bcef896b43ffbb58adea0}
commit prep file
/home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2/sub1, id
'sub1-20050415052110-b78ac740534ebce374d9e964'
commit prep file
/home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2/sub1/sub2, id
'sub2-20050415052110-218b05f65360dde45450a4ff'
add store entry
'xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052111-dde39a6c2d4042d8000d6506'
new inventory_id is
{xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052111-dde39a6c2d4042d8000d6506}
wrote working inventory
building commit log message
add store entry
'xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052111-dde39a6c2d4042d8000d6506'
new revision_id is
{xxxxxxxxxxxxxxxxxxxxxxxxx-20050415052111-dde39a6c2d4042d8000d6506}
committing patch r3
append to revision-history
finished, 0.070u/0.010s cpu, 0.000u/0.000s cum, 0.020 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:11 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'revno']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch2
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.000 elapsed
------------------------------------------------------------
bzr invoked at Fri 2005-04-15 05:21:11 +0000
  version: 0.0.3
  by Daniel Robitaille <xxxxxxxxxxxxxxxxxxxxxxxxx> on xxxxxxxxxxxxxxxx
  arguments: ['/home/rdr/bin_linux/bzr', 'revno']
  working dir: /home/rdr/bin_linux/bzr.dev/bzr-test.tmp/branch1
  platform: linux2
  python: (2, 3, 4, 'final', 0)
finished, 0.050u/0.010s cpu, 0.000u/0.000s cum, 0.010 elapsed




More information about the bazaar mailing list