Re: Patch local_bootstrap

2014-05-01 Thread Adam Spiers
On 1 May 2014 03:52, Lorenzo Cappelletti wrote: > On Tue, Apr 29, 2014 at 8:00 PM, Joey Hess wrote: > >> Anything that I can handle while offline. > > I'll assume formatted patch sets fall into > anything-that-I-can-handle-while-offline category and send them to you > only as not to flow this mai

[PATCH 1/5] bootstrap: add support to local files

2014-05-01 Thread Lorenzo Cappelletti
Signed-off-by: Lorenzo Cappelletti --- mr | 37 - 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/mr b/mr index ddc0738..8601aeb 100755 --- a/mr +++ b/mr @@ -1669,30 +1669,43 @@ sub register { } sub bootstrap { + eval q{use File::Copy}

[PATCH 2/5] bootstrap: fix documentation to reflect new capability

2014-05-01 Thread Lorenzo Cappelletti
Signed-off-by: Lorenzo Cappelletti --- mr | 31 --- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/mr b/mr index 8601aeb..b606736 100755 --- a/mr +++ b/mr @@ -28,7 +28,7 @@ B [options] grep pattern B [options] run command [param ...] -B [options] b

[PATCH 4/5] bootstrap: add support to stdin

2014-05-01 Thread Lorenzo Cappelletti
Signed-off-by: Lorenzo Cappelletti --- mr | 4 1 file changed, 4 insertions(+) diff --git a/mr b/mr index be2bac6..d59dc39 100755 --- a/mr +++ b/mr @@ -1715,6 +1715,10 @@ sub bootstrap { if $downloader[0] eq 'curl' && $status >> 8 == 60; die "mr boots

[PATCH 5/5] bootstrap: document stdin

2014-05-01 Thread Lorenzo Cappelletti
Signed-off-by: Lorenzo Cappelletti --- mr | 5 + 1 file changed, 5 insertions(+) diff --git a/mr b/mr index d59dc39..dba54cc 100755 --- a/mr +++ b/mr @@ -152,6 +152,11 @@ C. You can retrieve the config file by other means and pass its B as C. +=item standard input + +If source C consist

[PATCH 3/5] bootstrap: rename url to src for consistency with documentation

2014-05-01 Thread Lorenzo Cappelletti
Signed-off-by: Lorenzo Cappelletti --- mr | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/mr b/mr index b606736..be2bac6 100755 --- a/mr +++ b/mr @@ -1240,7 +1240,7 @@ my %loaded; sub loadconfig { my $f=shift; my $dir=shift; -

[PATCH] Call help() before loadconfig()

2014-05-01 Thread Lorenzo Cappelletti
This avoids annoying error messages from config files being debugged when running 'mr help'. Signed-off-by: Lorenzo Cappelletti --- mr | 47 +++ 1 file changed, 23 insertions(+), 24 deletions(-) diff --git a/mr b/mr index ddc0738..4cd3c2e 100755 --- a

[PATCH] Fix vcsh_trusted_checkout

2014-05-01 Thread Lorenzo Cappelletti
Signed-off-by: Lorenzo Cappelletti --- mr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mr b/mr index ddc0738..ecd1c02 100755 --- a/mr +++ b/mr @@ -2076,7 +2076,7 @@ bzr_trusted_checkout = bzr checkout|clone|branch|get $url $repo hg_trusted_checkout = hg clone $url $repo