[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH OSSTEST v2] mg-all-branch-statuses: Show how up to date each branch is



Ian Campbell writes ("Re: [PATCH OSSTEST v2] mg-all-branch-statuses: Show how 
up to date each branch is"):
> On Wed, 2015-07-01 at 14:37 +0100, Ian Jackson wrote:
> > These ????-??-?? are quite visually noisy.
> 
> Agreed, I did consider just omitting them. Or would you prefer
> "Unknown"?

It's not so much unknown as n/a.

> >   And the ISO dates are not
> > ideal for reading - how about printing a number of days ago instead ?
> 
> I was a bit lazy and it was easier to get date(1) to give me a date from
> shell. I'll see if I can get the number of days ago out of it by
> extending the Perl.

Ah.  Number of days is easy:

bash:

   now = $(date +%s)
   days = $(( ($then - $now) / 86400 ))

Perl:

   my $now = time;
   my $days = floor(($then - $now) / 86400);

> > > linux-next                2e0a48c9             0  219 ????-??-?? 
> > > 2014-04-10
> > 
> > I'm not sure what this means.  219 in #Tot would normally be a problem
> > and `1stNew' is from 2014.  But linux-next is not fast-forwarding.
> > And there's allegedly no tip although I think maybe you mean there is
> > no basis.
> 
> Lack of quoting on the call to printf may have confused things due to
> empty parameters.

Ah.

> Quoting things results in:
> 
> linux-next                            2e0a48c9    0  219 ????-??-?? 2014-04-10
> 
> Should basis say "None" in this case IYO?

I think blank is fine but I don't mind None.

> > > osstest                   15d2dd50             0    - ????-??-?? 
> > > ????-??-??
> > 
> > Is the lack of a Tip here a bug ?
> 
> I think it (ap-fetch-version) is looking in my $HOME and not osstest's.
> I would expect this to be correct if I ran it as osstest.

So it broke ?  Shouldn't the script bomb out ?

> > > xen-4.5-testing           e3bd3cef e3bd3cef
> > 
> > You could replace one copy of `e3bd3cef' with `same' or soemthing.
> 
> Or "UpToDate" ?

For example.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.