~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerheadd

  • Committer: John Arbash Meinel
  • Date: 2011-03-16 14:43:36 UTC
  • mfrom: (411.4.8 page_loading)
  • Revision ID: john@arbash-meinel.com-20110316144336-5or6keig1cbagois
Merge the page-loading change.

When /changes page is loaded, don't walk the whole ancestry during 'get_revids_from'.
Instead, only walk enough history to generate the actual page, plus a little bit more
to get the link for the 'next' page.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
LHUSER=loggerhead
18
18
 
19
 
if [ `whoami` = "$LHUSER" ]; then                                                                                   
 
19
if [ `whoami` = "$LHUSER" ]; then
20
20
    SUDO=""
21
 
else                                                                                                                
 
21
else
22
22
    SUDO="sudo -H -u $LHUSER"
23
23
fi
24
24