RFC: Please add 'type:' to "bzr info"
Jari Aalto
jari.aalto at cante.net
Thu Nov 23 13:44:46 GMT 2006
Consider these
a)
$ bzr init .
$ bzr info
Location:
branch root: file:///tmp/1/
Format:
control: Meta directory format 1
working tree: Working tree format 3
branch: Branch format 5
repository: Knit repository format 1
b)
$ bzr init-repo .
$ bzr info
Location:
shared repository: file:///tmp/3/
Format:
control: Meta directory format 1
repository: Knit repository format 1
c)
$ bzr init-repo --trees .
$ bzr info
Location:
shared repository: file:///tmp/2/
Format:
control: Meta directory format 1
repository: Knit repository format 1
Ok, so the (a) is regular full blown version because it reads
"branch", but differentiating (b) from (c) can't be read from the
listing. Perhaps that could be made read:
a)
Location:
+ type: standalone
branch root: file:///tmp/1/
b)
Location:
+ type: shared
shared repository: file:///tmp/2
c)
Location:
+ type: shared trees
shared repository: file:///tmp/3
Btw, please drop the trailing slash from the path names. The backend
tools that read the information can then just
PATH + FILENAME
instead of
(rip off the last slash from PATH) + FILENAME
Jari
More information about the bazaar
mailing list