You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by sebb <se...@gmail.com> on 2012/11/24 12:33:01 UTC

svnmucc: add comment marker ?

svnmucc can be used to read commands from files.

It would be handy to be able to add comments to files.
One could use a # marker as an indication that the rest of the line is
a comment (this cannot be confused with an existing action).

This should be simple to implement if it's thought to be useful.

Note: it seems svnmucc already ignores blank lines.

Re: svnmucc: add comment marker ?

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
sebb wrote on Sun, Nov 25, 2012 at 00:59:34 +0000:
> No, the idea was that # should only be recognised when expecting an action.

Sounds good to me.

Re: svnmucc: add comment marker ?

Posted by sebb <se...@gmail.com>.
On 24 November 2012 12:36, Daniel Shahaf <d....@daniel.shahaf.name> wrote:
> sebb wrote on Sat, Nov 24, 2012 at 11:33:01 +0000:
>> svnmucc can be used to read commands from files.
>>
>> It would be handy to be able to add comments to files.
>> One could use a # marker as an indication that the rest of the line is
>> a comment (this cannot be confused with an existing action).
>>
>
> And if someone has a file called '#foo', they simply need to specify it
> as './#foo'.  (That does mean # would only be recognised on the first
> column.)

Not necessary, see below.

>> This should be simple to implement if it's thought to be useful.
>>
>
> +1
>
>> Note: it seems svnmucc already ignores blank lines.
>
> Do you plan to allow comments between the verb ('mv', 'propset', etc)
> and its arguments?

No, the idea was that # should only be recognised when expecting an action.

So there would be no need to add work-rounds for files that begin with #.

> e.g., would the following be valid? ---
>    mv
>    # comment
>    URL1
>    URL2

No.

Re: svnmucc: add comment marker ?

Posted by Daniel Shahaf <d....@daniel.shahaf.name>.
sebb wrote on Sat, Nov 24, 2012 at 11:33:01 +0000:
> svnmucc can be used to read commands from files.
> 
> It would be handy to be able to add comments to files.
> One could use a # marker as an indication that the rest of the line is
> a comment (this cannot be confused with an existing action).
> 

And if someone has a file called '#foo', they simply need to specify it
as './#foo'.  (That does mean # would only be recognised on the first
column.)

> This should be simple to implement if it's thought to be useful.
> 

+1

> Note: it seems svnmucc already ignores blank lines.

Do you plan to allow comments between the verb ('mv', 'propset', etc)
and its arguments?  e.g., would the following be valid? ---

   mv
   # comment
   URL1
   URL2