Skip to content

Instantly share code, notes, and snippets.

View wchristian's full-sized avatar

Christian Walde (Mithaldu) wchristian

View GitHub Profile
$overrides{incoming_root} = $self->incoming_root if defined $self->incoming_root;
$overrides{sleeptime} = $self->sleeptime if defined $self->sleeptime;
$overrides{cfg_file} = $self->cfg_file if defined $self->cfg_file;
$overrides{suffix} = $self->suffix if defined $self->suffix;
#!/usr/bin/perl
use strict;
use warnings;
package avg_size_calculation;
BEGIN {
use Cwd;
chdir '..' if getcwd =~ m@/t$@;
D:\Ubic>prove
t\00_compile.t ........... ok
t\cmd.t .................. Failed 8/8 subtests
t\daemon.t ............... Failed 23/23 subtests
t\lock.t ................. ok
t\memory-leak.t .......... Can't open /proc/4812/statm: No such file or directory at t/Utils.pm line 58.
# Looks like your test exited with 2 before it could output anything.
t\memory-leak.t .......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t\multiservice-names.t ... ok

Git has been "flavour of the month" for 3 years now. ;)

I'd like to actually read stories of people who willingly went back. Could you link them?

As for why SVN is hard to use, just a few points: It's a lot of hard work to separate whitespace-change commits from actual content commits if you end up having both after a hard day of hacking. Its merge logic is completely inept in dealing with complex things, for example it regards two identical changes to the same thing in different branches as a conflict when merging. It is impossible to fix something in a set of commits if you realize it after the fact, because committing means publishing; in Git you can fix history BEFORE it has become history.

Also, here's what is bad about a central repository: You have no fine access control. All you can do is give a person access to read or write and that's that. If you want to look at their changes before adding them to your body of code, you can only allow them to get the code, do their changes, and then send you an

CPAN Terminal> i TFX::DownloadTOFiles
[MSG] Checking if source files are up to date
[MSG] Rebuilding author tree, this might take a while
[MSG] Rebuilding module tree, this might take a while
[MSG] No '/home/cwalde/.cpanplus/custom-sources' dir, skipping custom sources
[MSG] No '/home/cwalde/.cpanplus/custom-sources' dir, skipping custom sources
[MSG] Writing compiled source information to disk. This might take a little while.
[ERROR] 'TFX::DownloadTOFiles' does not contain an author part
@wchristian
wchristian / .minicpanrc_example
Created November 10, 2010 13:08
automatically update a darkpan
# where the cpan mirror lives
local: c:/dpan/mini
# where to mirror from
remote: http://cpan.perl.org
# where to prepare the inserted modules
repository: c:/dpan/mymodules
d:\traffics\conex_converter>cover -test
Deleting database D:\traffics\conex_converter\cover_db
cover: running make test OPTIMIZE=-O0\ -fprofile-arcs\ -ftest-coverage OTHERLDFLAGS=-fprofile-arcs\ -ftest-coverage
make: profile-arcs\: No such file or directory
make: test-coverage: No such file or directory
make: test-coverage: No such file or directory
make: *** No rule to make target `test-coverage'. Stop.
Reading database from D:\traffics\conex_converter\cover_db
d:\cpan\Devel--Cover>perl moose.pl
Devel::Cover 0.87: Collecting coverage data for branch, condition, pod, statement, subroutine and time.
Selecting packages matching:
Ignoring packages matching:
/Devel/Cover[./]
^t/
\.t$
^test\.pl$
Ignoring packages in:
.
use strict;
use warnings;
package Class::Mock;
use Sub::Install;
sub import {
my ( $self, $target, $sub_masks ) = @_;
#!/usr/bin/perl
use strict;
use warnings;
BEGIN {
use Cwd;
chdir '..' if getcwd =~ m@/t$@;
use lib 'lib';
}