[RFC] tags in log output

Goffredo Baroncelli kreijack at tiscalinet.it
Sat Apr 14 10:29:49 BST 2007

On Tuesday 10 April 2007, John Arbash Meinel wrote:
> Martin Pool wrote:
> ...
> > There is no restriction on what is allowed but common sense suggests
> > not using spaces.  I think this syntax would be ok.
> > 
> Between:
> tag: two words
> tag: "two words"
> tag: foo "two words" baz
> tag: foo, two words, baz
> tag: "foo" "two words" "baz"

What about showing a tag per line as show below ?

tag: foo
tag: two words
tag: baz

I think that is the best from a parser point of view ( both in the python 
world but also in the bash script )


> I kind of prefer the commas to the quoted form. Though I guess you could
> put a comma in your tag name, and things would get confused.
> Having it use quotes "when necessary" is okay, though it means that
> people parsing the strings need to take extra care.
> Doing:
>   tags = tags.split(', ')
> Is quite a bit easier than trying to figure out how to parse "foo".
> Alternatively, we should just call the parameter:
> tags: X Y Z
> tags: X
> Since we are giving a list of tags, which may only have 1 entry. Versus
> 'tag:' which indicates that we are giving a single tag (and sometimes
> more than one).
> So in summary, I would like the format to be:
> tags: one
> tags: one, two
> tags: one, with space
> And I don't have an answer for a tag with a comma... (especially a comma
> and a space....)
> John
> =:->

gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack at inwind.it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87  87C0 BB86 505C 6B2A CFF9

More information about the bazaar mailing list