[Bug 153191] command to get annotation for one line

John Arbash Meinel john at arbash-meinel.com
Tue Oct 16 18:04:54 BST 2007


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

Vincent Ladeuil wrote:
>>>>>> "aaron" == Aaron Bentley <aaron.bentley at utoronto.ca> writes:
> 
>     aaron> Martin Pool wrote:
>     >> Public bug reported:
>     >> 
>     >> It seems common to just want the annotation for a particular known line,
>     >> with eg
>     >> 
>     >> bzr annotate foo.py +344
>     >> 
>     >> and that should just show the log entry for the relevant revision.  You
>     >> could usefully bind this into an editor.
> 
>     aaron> Alternatively, it could be a revision spec:
> 
>     aaron> bzr log -r origin:foo.py+344
> 
> Err, foo.py+344 is a legal file name.
> 
> <snip/>
> 
>     aaron> And can we please put feature requests on the list,
>     aaron> not the bug tracker?  At least for initial discussion?
> 
> CC added.
> 
> 

Well, under Unix the only illegal character in a path is '\0', IIRC. And '/' is
considered a directory separator. Which means that there are no possible
characters we could use that could never be used in a filename.
I don't think we need to support all of them, though.

At one point we were using branch/@XXX to define a revision number, I suppose
we could make it file/@+344 or some other hideous thing.

I think Aaron has a point for "foo.py:344". We can always make the parser chop
off the last colon, so:

foo.py:other:name:to:use::344

Would think we were asking about line 344 in 'foo.py:other:name:to:use:'

Of course, ':' has a special meaning on Mac, since it *used* to be the
directory separator. So if you go to the Finder, you can create a file named
"foo/py". And if you use the Terminal and ls it, it will show up as "foo:py".
Good stuff. I just love the Mac filesystem, it is my bestest friend.

John
=:->

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

iD8DBQFHFO82JdeBCYSNAAMRAjMFAJoCJU5KYSx6vfsuAOuy8FawhythzACgkkNZ
poNMd2l7xF+t3dfNu+27MQc=
=re5k
-----END PGP SIGNATURE-----



More information about the bazaar mailing list