projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d33e2f
)
apply actions sorted by time
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 5 Jun 2010 19:21:36 +0000
(21:21 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 5 Jun 2010 19:21:36 +0000
(21:21 +0200)
script/actions-to-changes
patch
|
blob
|
history
diff --git
a/script/actions-to-changes
b/script/actions-to-changes
index
ca31147
..
6f00529
100755
(executable)
--- a/
script/actions-to-changes
+++ b/
script/actions-to-changes
@@
-10,12
+10,16
@@
use Data::Dump qw(dump);
my $url = 'http://localhost:3000/data/edit';
my $max = 1;
-my @
change
s = @ARGV;
+my @
action
s = @ARGV;
my $t = Mojo::Client->new;
$t->max_redirects( 1 );
-foreach my $c ( @changes ) {
+foreach my $c ( sort {
+ my $at = $1 if $a =~ m/(\d+\.\d+)/;
+ my $bt = $1 if $b =~ m/(\d+\.\d+)/;
+ $at <=> $bt
+} @actions ) {
print "# $c\n";