[MERGE] line-endings support: part 1 of 2: versioned properties

Alexander Belchenko bialix at ukr.net
Mon Apr 14 12:37:56 BST 2008


Nicholas Allen пишет:
> Alexander Belchenko wrote:
> | Nicholas Allen пишет:
> |> | E.g. if you have many C-files then you need to set only one 
> property section
> |> |
> |> | bzr prop-set *.c foo bar
> |> Shouldn't that be "bzr prop-set foo bar *.c"?
> |
> | All prop-commands use arguments sequence as
> |
> | FILENAME_OR_PATTERN PROPNAME [VALUE]
> |
> | I don't see reasons to reshuffle them.
> I may want to give a list of file names to set the properties on and not 
> just one file. All bzr commands have the file names at the end so this 
> would make sense to me and would be consistent with the other bzr 
> commands. Then I can do:
> 
> bzr prop-set prop-name prop-value file1 file2 file2 pattern1 pattern2 etc

May be. But I'm not in favour of this.

> Also, on Unix the shell normally does pattern expansion so if I gave the 
> command:
> 
> bzr prop-set *.c prop-name value
> 
> the shell would pass many file names to bzr and not "*.c". I think this 
> could be an easy mistake to make too. I don't think windows does this. 
> So on Unix you would have to remember to quote the pattern.

Yes, on Unix you have to. And putting filename argument as first argument makes much easier
to catch mistake if you forgot to quote pattern.



More information about the bazaar mailing list