Status doesn't work over symlink
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
When referencing a branch through a symlink without trailing '/', bzr status doesn't work (unlike diff) with a not very helpfull message :
$ bzr init branch
$ touch branch/file
$ bzr add branch/file
added file
$ bzr st branch
added:
file
$ bzr st branch/
added:
file
$ ln -s branch link
$ ls -l
total 4,0K
drwxr-xr-x 3 alex alex 4,0K 2008-07-21 21:25 branch/
lrwxrwxrwx 1 alex alex 6 2008-07-21 21:25 link -> branch/
$ bzr st link
bzr: ERROR: link is not in the same branch as link
$ bzr st link/
added:
file
$ bzr diff link
=== added file 'file'
.bzr.log of error :
0.062 encoding stdout as sys.stdout encoding 'UTF-8'
0.063 bzr arguments: [u'st', u'link']
0.063 looking for plugins in /home/alex/
0.090 looking for plugins in /usr/lib/
0.090 Plugin name __init__ already loaded
0.090 Plugin name __init__ already loaded
0.101 encoding stdout as sys.stdout encoding 'UTF-8'
0.158 opening working tree '/home/
0.161 Traceback (most recent call last):
File "/usr/lib/
return run_bzr(argv)
File "/usr/lib/
ret = run(*run_argv)
File "/usr/lib/
return self.run(
File "/usr/lib/
result = func(*args, **kwargs)
File "/home/
builtins.
File "/usr/lib/
result = func(*args, **kwargs)
File "/usr/lib/
tree, file_list = tree_files(
File "/usr/lib/
(e.path, file_list[0]))
BzrCommandError: link is not in the same branch as link
0.161 return code 3
0.062 encoding stdout as sys.stdout encoding 'UTF-8'
0.063 bzr arguments: [u'st', u'link/']
0.063 looking for plugins in /home/alex/
0.089 looking for plugins in /usr/lib/
0.090 Plugin name __init__ already loaded
0.090 Plugin name __init__ already loaded
0.101 encoding stdout as sys.stdout encoding 'UTF-8'
0.157 opening working tree '/home/
0.161 check paths: ['']
0.163 return code 0
Changed in bzr: | |
importance: | Undecided → Low |
status: | New → Confirmed |
This has the same root cause as bug 128562 and with that fixed, you should see:
bzr st link/ -- status of the referenced branch
bzr st link -- tells you about changes to the link