`bzr ls FILE` fails with directory error

Bug #790671 reported by Alexander Belchenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
New
Undecided
Unassigned

Bug Description

I want to know file-id of one file and compare that id with fileif of file from another tree.

C:\Temp>bzr init 2
Created a standalone tree (format: 1.14)

C:\Temp\2>echo > foo

C:\Temp\2>bzr add
adding foo

C:\Temp\2>bzr ci -m1
Committing to: C:/Temp/2/
added foo
Committed revision 1.

C:\Temp\2>bzr ls foo --show-ids
bzr: ERROR: [Error 267] The directory name is invalid: u'C:/Temp/2/foo\\*.*'

Help for `bzr ls` has no mention it accepts only directory names though:

C:\Temp\2>bzr help ls
Purpose: List files in a tree.
Usage: bzr ls [PATH]

Options:
  --from-root Print paths relative to the root of the branch.
  -i, --ignored Print ignored files.
  -k ARG, --kind=ARG List entries of a particular kind: file, directory,
                        symlink.
  -v, --verbose Display more information.
  -R, --recursive Recurse into subdirectories.
  -V, --versioned Print versioned files.
  -u, --unknown Print unknown files.
  -h, --help Show help message.
  -q, --quiet Only display errors and warnings.
  -d ARG, --directory=ARG
                        Branch to operate on, instead of working directory
  --usage Show usage message and options.
  --show-ids Show internal object ids.
  -0, --null Use an ASCII NUL (\0) separator rather than a newline.
  -r ARG, --revision=ARG
                        See "help revisionspec" for details.

See also: cat, status

For me PATH is generic term, am I misunderstand something?

So either this is bug in ls, or help for ls should be improved.

Revision history for this message
John A Meinel (jameinel) wrote : Re: [Bug 790671] [NEW] `bzr ls FILE` fails with directory error

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 5/31/2011 3:10 PM, Alexander Belchenko wrote:
> Public bug reported:
>
> I want to know file-id of one file and compare that id with fileif of
> file from another tree.
>
> C:\Temp>bzr init 2
> Created a standalone tree (format: 1.14)

'bzr ls FILE' failing is a dupe of another bug. There is even a
potential patch for it, but I don't know it offhand.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3k+2AACgkQJdeBCYSNAANjIgCgvapaFNy9b54PSln5U4nFsXNr
wXoAniXRyQeiwpyZFrS1lZ/uH/3J/+11
=5XvZ
-----END PGP SIGNATURE-----

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.