How to recursively add files and directories in GNU Arch

Last week we moved from Subverion to GNU Arch. Why? I’ll try to explain in next posts. So, we needed to import our project (it contains many files and directories) in the new Arch repository. Leonid created a shell script to do that. But I’ve found easier (IMHO) way to do that.


tla inventory --source --names | xargs tla add

P.S. If you have some files in the Arch repository and some of them no you can do as indicated above. But in that case you’ll see warnings about already added files and directories. To avoid it run following command:

tla tree-lint --untagged-files | xargs tla add

The glance on PHP through Perl

One month ago I started to customize SugarCRM for our company. This is a very good, hight quality software. But it ‘s based on PHP but I’ve developed on Perl during last four years. I’m not going to say “PHP is shit, Perl forever!”. I’d like just to share my impression of PHP as Perl developer.
And sometimes I’m a little bit confused about PHP. One example you can see bottom:

var $list_fields = array('id', 'first_name', 'last_name', 'account_name',      
'account_id', 'title', 'email1'
, 'quote_role'
, 'quote_rel_id'
, "team_id"
, "team_name"

, 'invalid_email'
);

This is a definition of some array (it’s disgasting to put each element in the quotes and use key word ‘array’). Strange isn’t it? I suspect that PHP didn’t ignore last comma in the array (Perl could do it from his birthday I guess). Thas’s way PHP developers made that trick to have possibility to drop any array’s elements without getting errors.