[RFC] tags in log output

John Arbash Meinel john at arbash-meinel.com
Tue Apr 10 18:38:22 BST 2007


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"


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
=:->



More information about the bazaar mailing list