debian/0000755000000000000000000000000012177541313007172 5ustar debian/rules0000755000000000000000000000123412177540202010246 0ustar #!/usr/bin/make -f %: dh --with python2 --buildsystem=python_distutils $* ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) CONCURRENCY = BZR_CONCURRENCY=$(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) endif ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) override_dh_auto_test: $(CONCURRENCY) BZR_PLUGINS_AT=loggerhead@$(CURDIR) /usr/bin/bzr selftest \ --parallel=fork -v -s bp.loggerhead endif override_dh_auto_clean: dh_auto_clean cd docs/ && $(MAKE) clean override_dh_auto_build: dh_auto_build --with python2 --buildsystem=python_distutils cd docs/ && $(MAKE) html cd docs/_build/html/_static/ && rm jquery.js underscore.js debian/bzr-builddeb.conf0000644000000000000000000000023112177540202012376 0ustar [BUILDDEB] upstream-branch = lp:loggerhead export-upstream-revision = tag:loggerhead-$UPSTREAM_VERSION [HOOKS] merge-upstream = ./debian/update-deps.py debian/copyright0000644000000000000000000000475112177540202011130 0ustar This package was debianized by Jelmer Vernooij on Fr 25. Jul 22:45:27 CEST 2008. It was downloaded from http://launchpad.net/loggerhead The tarball was created by running: bzr export -r100 loggerhead-0.0.1~bzr100.tar.gz http://launchpad.net/loggerhead Copyright (C) 2005 Matt Mackall Copyright (C) 2005 Jake Edge Copyright (C) 2006 Robey Pointer Copyright (C) 2006 Goffredo Baroncelli Copyright (C) 2005-2008 Canonical Ltd Copyright (C) 2008 Robert Collins License: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License with the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. On Debian systems, the full text of the GPL can be found in /usr/share/common-licenses/GPL The included Mootools JavaScript library is: Copyright (c) 2006-2008 Valerio Proietti, . License: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/loggerhead-doc.install0000644000000000000000000000005512177540202013422 0ustar docs/_build/html/ /usr/share/doc/loggerhead/ debian/changelog0000644000000000000000000001512512177540703011052 0ustar loggerhead (1.19~bzr479-3) unstable; urgency=low * Team upload. * debian/control: Mark as compatible with bzr 2.6. (Closes: #718729). -- Andrew Starr-Bochicchio Sun, 04 Aug 2013 17:03:32 -0400 loggerhead (1.19~bzr479-2) unstable; urgency=low * Updated Standards-Version to 3.9.3 (no changes). * Use packaged underscore.js rather than shipping an embedded copy. * Simpler way to filter static files out of the distutils installation. -- Roland Mas Thu, 08 Nov 2012 21:17:30 +0100 Loggerhead (1.19~bzr479-1) unstable; urgency=low * Port to current YUI API, and use the packaged version rather than shipping an embedded copy (closes: #607447). Thanks to Rick Harding for much help with the porting. * And let's grab the latest from upstream while we're at it. -- Roland Mas Wed, 07 Nov 2012 17:12:43 +0100 loggerhead (1.19~bzr477-1) unstable; urgency=low * New upstream snapshot (actually, it's 1.18.2). * I guess I should step up as maintainer (closes: #668933). Thanks, Jelmer! * Ship static files in their proper place. -- Roland Mas Tue, 06 Nov 2012 22:49:45 +0100 loggerhead (1.19~bzr461-1) unstable; urgency=low * New upstream snapshot. * Add build-dependency on python-fixtures, required for running testsuite. -- Jelmer Vernooij Sat, 26 Nov 2011 18:50:21 +0100 loggerhead (1.18.1+bzr457-1) unstable; urgency=low * Mark as compatible with pre-releases of bzr 2.5. * New upstream snapshot. * Move local changes into debian/. Closes: #643204 * Fix update-deps.py to not remove loggerhead-doc. -- Jelmer Vernooij Fri, 30 Sep 2011 10:20:06 +0200 loggerhead (1.18.1+bzr447-2) unstable; urgency=low [ Max Bowsher ] * Re-arrange | condition in build deps to make sbuild happy. [ Andrew Starr-Bochicchio ] * Add new loggerhead-doc package (Closes: #626335). * Bump Standards-Version to 3.9.2, no changes. -- Jelmer Vernooij Tue, 19 Jul 2011 21:20:08 +0200 loggerhead (1.18.1+bzr447-1) experimental; urgency=low * New upstream snapshot. -- Jelmer Vernooij Thu, 02 Jun 2011 14:11:55 +0200 loggerhead (1.18.1-3) unstable; urgency=low [ Max Bowsher ] * Re-arrange | condition in build deps to make sbuild happy. Closes: #629783 [ Jelmer Vernooij ] * Depend on python-bzrlib rather than bzr. * Bump standards version to 3.9.2 (no changes). -- Jelmer Vernooij Thu, 09 Jun 2011 22:48:50 +0100 loggerhead (1.18.1-2) unstable; urgency=low * Add build dependency on python-bzrlib.tests, required for newer versions of bzr. -- Jelmer Vernooij Sun, 01 May 2011 02:55:06 +0200 loggerhead (1.18.1-1) unstable; urgency=high * Bump python-simplejson from Recommends to Depends, as loggerhead breaks with python-json. LP: #586611 * Switch to dh_python2. Closes: #616876 * Switch to debhelper 7, drop cdbs. * Claim support for Bazaar 2.4. * New upstream release. + Fixes escaping of filenames in revision views. (CVE-2011-0728) LP: #740142 -- Jelmer Vernooij Fri, 25 Mar 2011 01:02:13 +0100 loggerhead (1.18-2) unstable; urgency=low * Run the test suite during package build. -- Jelmer Vernooij Sun, 27 Feb 2011 23:27:37 +0100 loggerhead (1.18-1) unstable; urgency=low [ Max Bowsher ] * New upstream release. + Depends on bzr >= 1.17. Closes: #605653 * Remove remnants of patching to use the system YUI, which actually broke the use of YUI entirely. Loggerhead requires YUI 3, which is not packaged yet. Until it is, include YUI. -- Jelmer Vernooij Sat, 18 Dec 2010 14:43:23 +0100 loggerhead (1.17+bzr429-1) unstable; urgency=low [ Andrew Starr-Bochicchio ] * debian/control: - Recommend python-pygments to support syntax-highlighting. (LP: #607775) - Add Vcs-Browser field. - Bump Standards-Version to 3.9.1, no-changes needed. [ Jelmer Vernooij ] * New upstream snapshot. * Cope with bzrlib.util.configobj no longer existing. * Add convenience script for automatically updating dependencies. -- Jelmer Vernooij Mon, 11 Oct 2010 11:00:01 +0200 loggerhead (1.17+bzr424-1) unstable; urgency=low * Use source format version 3. * Bump standards version to 3.8.4 * Use new upstream snapshot. + Fixes import issues when running full Bazaar testsuite. -- Jelmer Vernooij Mon, 08 Feb 2010 01:17:39 +0100 loggerhead (1.17+bzr400-1) unstable; urgency=low * New upstream snapshot. -- Jelmer Vernooij Mon, 18 Jan 2010 18:33:40 +1300 loggerhead (1.17-1) unstable; urgency=low * New upstream release. Loggerhead no longer flattens branch hierarchies (closes: #507001). [ Roland Mas ] * Use the YUI library provided by libjs-yui. (Closes: #511286) * Switch init script to use serve-branches rather than start-loggerhead (closes: #511295). [ Jelmer Vernooij ] * Use my debian.org address in Uploaders field. * Add ${misc:Depends} to please lintian. * Suggest recent version of paste, which doesn't expose internal port numbers in links. (Closes: #507000) * Bump standards version to 3.8.3. [ James Westby ] * New upstream release. * Drop get-orig-source rule in favour of debian/watch. * Add python-pkg-resources and python-paste to Build-Depends, python-pkg-resources to Depends and python-simplejson to Recommends due to dependency changes. [ Jelmer Vernooij ] * Remove references to bzrlib installation from example config file. [ Roland Mas ] * Added myself to Uploaders. * Documented version discrepancy between the YUI shipped by libjs-yui and the one used by Loggerhead, as well as a workaround to be used until YUI 3 becomes available. -- Roland Mas Tue, 29 Sep 2009 15:57:44 +0200 loggerhead (1.10-1) unstable; urgency=low * New upstream release. * Stop writing home directory to pid file. (Closes: #507002) * Use objlib from bzr. (Closes: #506999) * Fix dependency on python-paste. -- Jelmer Vernooij Tue, 09 Dec 2008 01:04:39 +0100 loggerhead (1.6+bzr245-1) unstable; urgency=low * New upstream snapshot. -- Jelmer Vernooij Fri, 21 Nov 2008 01:11:24 +0100 loggerhead (1.6+bzr241-1) unstable; urgency=low * New upstream snapshot. -- Jelmer Vernooij Fri, 07 Nov 2008 16:03:13 +0100 loggerhead (1.6-1) unstable; urgency=low * Initial release. (Closes: #492477) -- Jelmer Vernooij Fri, 25 Jul 2008 22:43:49 +0200 debian/serve-branches.conf.example0000644000000000000000000000006612177540202014400 0ustar served_branches=/srv/bzr prefix=/loggerhead port=8080 debian/examples0000644000000000000000000000010612177540202010724 0ustar debian/serve-branches.conf.example bazaar.conf apache-loggerhead.conf debian/loggerhead.links0000644000000000000000000000011412177540202012325 0ustar /usr/share/javascript/yui3 /usr/share/loggerhead/static/javascript/yui/builddebian/postrm0000755000000000000000000000003112177540202010432 0ustar #!/bin/sh -e #DEBHELPER# debian/loggerhead-doc.links0000644000000000000000000000027412177540202013077 0ustar /usr/share/javascript/jquery/jquery.js /usr/share/doc/loggerhead/html/_static/jquery.js /usr/share/javascript/underscore/underscore.js /usr/share/doc/loggerhead/html/_static/underscore.js debian/README.Debian0000644000000000000000000000052412177540202011230 0ustar loggerhead for Debian ===================== To use loggerhead, please copy the example configuration file from /usr/share/doc/loggerhead/examples to /etc/loggerhead.conf and modify it for your local environment. After this, you should be able to start loggerhead. -- Jelmer Vernooij , Mo 25. Aug 15:06:25 CEST 2008 debian/loggerhead.init0000755000000000000000000000271712177540202012166 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: loggerhead # Required-Start: $local_fs $remote_fs $network # Required-Stop: $local_fs $remote_fs $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 ### END INIT INFO # # Init script for loggerhead Debian package. Based on skeleton init script: # # Version: @(#)skeleton 2.85-23 28-Jul-2004 miquels@cistron.nl # PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="Loggerhead Bazaar Branch Browser" NAME=loggerhead PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Gracefully exit if the package has been removed. [ -x /usr/bin/serve-branches ] || exit 0 # Check if configuration file is present [ ! -f /etc/serve-branches.conf ] && exit 0 . /etc/serve-branches.conf # # Function that starts the daemon/service. # d_start() { start-stop-daemon -p $PIDFILE -S --startas /usr/bin/serve-branches --chuid loggerhead --make-pidfile --background --chdir $served_branches -- --prefix=$prefix --port=$port --log-folder /var/log/loggerhead 2>/dev/null } # # Function that stops the daemon/service. # d_stop() { start-stop-daemon -p $PIDFILE -K } case "$1" in start) echo -n "Starting $DESC: $NAME" d_start echo "." ;; stop) echo -n "Stopping $DESC: $NAME" d_stop echo "." ;; restart|force-reload) echo -n "Restarting $DESC: $NAME" d_stop sleep 1 d_start echo "." ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0 debian/postinst0000755000000000000000000000017512177540202011002 0ustar #!/bin/sh -e #DEBHELPER# adduser --system --group --home / loggerhead > /dev/null 2>&1 chown loggerhead /var/log/loggerhead debian/update-deps.py0000755000000000000000000000260012177540202011754 0ustar #!/usr/bin/python # Update dependencies based on info.py # Copyright (C) 2010 Jelmer Vernooij # Licensed under the GNU GPL, version 2 or later. from debian.deb822 import Deb822, PkgRelation import os, sys sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..")) from info import bzr_compatible_versions def update_relation(l, pkg, kind, version): found = False for pr in l: if len(pr) != 1: continue e = pr[0] if e["name"] == pkg and e["version"] and e["version"][0] == kind: e["version"] = (kind, version) found = True if not found: l.append([{"version": (kind, version), "name": pkg, "arch": None}]) f = open('debian/control', 'r') source = Deb822(f) def update_deps(control, field, package): bdi = PkgRelation.parse_relations(control[field]) update_relation(bdi, package, ">=", "%d.%d~" % bzr_compatible_versions[0][:2]) update_relation(bdi, package, "<<", "%d.%d.0" % (bzr_compatible_versions[-1][0], bzr_compatible_versions[-1][1]+1)) control[field] = PkgRelation.str(bdi) update_deps(source, "Build-Depends-Indep", "bzr") binary1 = Deb822(f) binary2 = Deb822(f) update_deps(binary1, "Depends", "python-bzrlib") f = open("debian/control", "w+") try: source.dump(f) f.write("\n") binary1.dump(f) f.write("\n") binary2.dump(f) finally: f.close() debian/watch0000644000000000000000000000015712177540202010222 0ustar version=3 https://launchpad.net/loggerhead/+download http://launchpad.net/loggerhead/.*/loggerhead-(.+).tar.gz debian/dirs0000644000000000000000000000003612177540202010051 0ustar var/log/loggerhead etc/init.d debian/compat0000644000000000000000000000000212177540202010364 0ustar 7 debian/logrotate0000644000000000000000000000017412177540202011113 0ustar /var/log/loggerhead/serve-branches.log { daily rotate 7 size 10M compress delaycompress missingok } debian/patches/0000755000000000000000000000000012177541072010623 5ustar debian/patches/dont-ship-static.patch0000644000000000000000000000450612177540202015035 0ustar Index: unstable/setup.py =================================================================== --- unstable.orig/setup.py +++ unstable/setup.py @@ -40,32 +40,7 @@ "loggerhead/templates", "bzrlib.plugins.loggerhead"], package_dir={'bzrlib.plugins.loggerhead':'.'}, - package_data = {"loggerhead": ["templates/*.pt", - "static/css/*.css", - "static/javascript/*.js", - "static/javascript/yui/build/anim/*", - "static/javascript/yui/build/base/*", - "static/javascript/yui/build/cssbase/*", - "static/javascript/yui/build/cssgrids/*", - "static/javascript/yui/build/dd/*", - "static/javascript/yui/build/dump/*", - "static/javascript/yui/build/get/*", - "static/javascript/yui/build/json/*", - "static/javascript/yui/build/node/*", - "static/javascript/yui/build/queue/*", - "static/javascript/yui/build/yui/*", - "static/javascript/yui/build/attribute/*", - "static/javascript/yui/build/cookie/*", - "static/javascript/yui/build/cssfonts/*", - "static/javascript/yui/build/cssreset/*", - "static/javascript/yui/build/dom/*", - "static/javascript/yui/build/event/*", - "static/javascript/yui/build/io/*", - "static/javascript/yui/build/loader/*", - "static/javascript/yui/build/oop/*", - "static/javascript/yui/build/substitute/*", - "static/javascript/yui/build/yui-base/*", - "static/images/*"]}, + package_data = {"loggerhead": ["templates/*.pt"]}, data_files = [ ('share/man/man1', ['serve-branches.1']), ('share/doc/loggerhead', ['apache-loggerhead.conf', debian/patches/series0000644000000000000000000000005412177540202012031 0ustar port-to-yui3.5.patch dont-ship-static.patch debian/patches/port-to-yui3.5.patch0000644000000000000000000003136012177540202014277 0ustar Index: unstable/loggerhead/templates/macros.pt =================================================================== --- unstable.orig/loggerhead/templates/macros.pt +++ unstable/loggerhead/templates/macros.pt @@ -23,22 +23,6 @@ - - - - - - - - Index: unstable/loggerhead/static/javascript/custom.js =================================================================== --- unstable.orig/loggerhead/static/javascript/custom.js +++ unstable/loggerhead/static/javascript/custom.js @@ -1,13 +1,14 @@ -Y = YUI().use("base", "node", "io-base", "anim"); - var global_timeout_id = null; var global_search_request = null; +LH = new YUI(); +LH.use("base", "event", "node", "io-base", "anim", function (Y) { + Y.on( 'domready', function() { - var search_box = Y.get('#q'); + var search_box = Y.one('#q'); if (!Y.Lang.isNull(search_box)) { function get_suggestions() { @@ -29,11 +30,11 @@ var region = search_box.get('region'); var current_query = search_box.get('value'); - Y.get('#search_terms').setStyle('display', 'block'); - Y.get('#search_terms').setStyle('position', 'absolute'); - Y.get('#search_terms').setStyle('left', region.left); - Y.get('#search_terms').setStyle('top', region.bottom); - Y.get('#search_terms').set('innerHTML','Loading...'); + Y.one('#search_terms').setStyle('display', 'block'); + Y.one('#search_terms').setStyle('position', 'absolute'); + Y.one('#search_terms').setStyle('left', region.left); + Y.one('#search_terms').setStyle('top', region.bottom); + Y.one('#search_terms').set('innerHTML','Loading...'); } search_box.on( "keyup", @@ -41,7 +42,7 @@ { if(search_box.get('value') == '') { - Y.get('#search_terms').setStyle('display', 'none'); + Y.one('#search_terms').setStyle('display', 'none'); } else { @@ -53,29 +54,30 @@ } }); } - }); + } +); function cool_search(tid, response, query) { - var q = Y.get('#q'); + var q = Y.one('#q'); var region = q.get('region'); var current_query = q.get('value'); if (current_query == query) { - Y.get('#search_terms').set('innerHTML', response.responseText); - Y.get('#search_terms').setStyle('display', 'block'); - Y.get('#search_terms').setStyle('position', 'absolute'); - Y.get('#search_terms').setStyle('left', region.left); - Y.get('#search_terms').setStyle('top', region.bottom); + Y.one('#search_terms').set('innerHTML', response.responseText); + Y.one('#search_terms').setStyle('display', 'block'); + Y.one('#search_terms').setStyle('position', 'absolute'); + Y.one('#search_terms').setStyle('left', region.left); + Y.one('#search_terms').setStyle('top', region.bottom); } } function hide_search() { - setTimeout("Y.get('#search_terms').setStyle('display','none')", 300); + setTimeout("Y.one('#search_terms').setStyle('display','none')", 300); } -function Collapsable(config) +LH.Collapsable = function(config) { this.is_open = config.is_open; this.open_node = config.open_node; @@ -100,7 +102,7 @@ return height; } -Collapsable.prototype._animate = function (callback) +LH.Collapsable.prototype._animate = function (callback) { if (this.anim) this.anim.stop(); @@ -120,7 +122,7 @@ this.anim.on('end', this.animComplete, this, callback); } -Collapsable.prototype._load_finished = function(tid, res, args) +LH.Collapsable.prototype._load_finished = function(tid, res, args) { var l = res.responseText.split('\n'); l.splice(0, 1); @@ -137,7 +139,7 @@ this._animate(args[0]); }; -Collapsable.prototype._ensure_container = function(callback) +LH.Collapsable.prototype._ensure_container = function(callback) { if (this.container == null) { this.container = Y.Node.create('
'); @@ -184,7 +186,7 @@ * 8. Start a new animation to show the rest of the new content. */ -Collapsable.prototype.open = function(callback) +LH.Collapsable.prototype.open = function(callback) { this.expand_icon.set('src', expanded_icon_path); @@ -221,7 +223,7 @@ }; -Collapsable.prototype.animComplete = function(evt, callback) +LH.Collapsable.prototype.animComplete = function(evt, callback) { this.anim = null; if (this._loading) return; @@ -229,7 +231,7 @@ this.is_open = true; }; -Collapsable.prototype.close = function() +LH.Collapsable.prototype.close = function() { this._ensure_container(); @@ -258,7 +260,7 @@ anim.run(); }; -Collapsable.prototype.closeComplete = function () { +LH.Collapsable.prototype.closeComplete = function () { this.open_node.setStyle('display', 'none'); if (this.close_node) { this.close_node.setStyle('display', 'block'); @@ -268,7 +270,7 @@ this.is_open = false; }; -Collapsable.prototype.toggle = function() +LH.Collapsable.prototype.toggle = function() { if (this.is_open) { @@ -305,7 +307,7 @@ } } var id_selector = "#" + target_id; - var main = Y.get(id_selector); + var main = Y.one(id_selector); notification_node = Y.Node.create('
') .addClass('global-notification'); if (hidden) { @@ -324,13 +326,13 @@ this is because we have no way to use feature flags in css directly. This should be removed if the feature is accepted. */ - var body = Y.get('body'); + var body = Y.one('body'); body.addClass('feature-flag-bugs-private-notification-enabled'); // Set the visible flag so that the content moves down. body.addClass('global-notification-visible'); setup_privacy_notification(); - var global_notification = Y.get('.global-notification'); + var global_notification = Y.one('.global-notification'); if (global_notification.hasClass('hidden')) { global_notification.addClass('transparent'); global_notification.removeClass('hidden'); @@ -360,9 +362,10 @@ }; Y.on('domready', function() { - var body = Y.get('body'); + var body = Y.one('body'); if (body.hasClass('private')) { setup_privacy_notification(); display_privacy_notification(); } }); +}); Index: unstable/loggerhead/static/javascript/diff.js =================================================================== --- unstable.orig/loggerhead/static/javascript/diff.js +++ unstable/loggerhead/static/javascript/diff.js @@ -1,5 +1,7 @@ var unified = true; +LH.use("event", function(Y) { + function make_unified(chunk) { var pending_added = []; function flush_adds(before) { @@ -91,12 +93,12 @@ if (unified) { pts && pts.each(make_sbs); unified = false; - Y.get("#toggle_unified_sbs").set('innerHTML', "Show unified diffs"); + Y.one("#toggle_unified_sbs").set('innerHTML', "Show unified diffs"); } else { pts && pts.each(make_unified); unified = true; - Y.get("#toggle_unified_sbs").set('innerHTML', "Show diffs side-by-side"); + Y.one("#toggle_unified_sbs").set('innerHTML', "Show diffs side-by-side"); } } @@ -112,14 +114,14 @@ var collapsable = item.collapsable; if(action == 'close') { - Y.get('#expand_all').setStyle('display','block'); - Y.get('#collapse_all').setStyle('display','none'); + Y.one('#expand_all').setStyle('display','block'); + Y.one('#collapse_all').setStyle('display','none'); collapsable.close(); } else if(action == 'open') { - Y.get('#expand_all').setStyle('display','none'); - Y.get('#collapse_all').setStyle('display','block'); + Y.one('#expand_all').setStyle('display','none'); + Y.one('#collapse_all').setStyle('display','block'); collapsable.open(); } }); @@ -150,7 +152,7 @@ } function zoom_to_diff (path) { - var collapsable = Y.get('#' + path_to_id[path]).collapsable; + var collapsable = Y.one('#' + path_to_id[path]).collapsable; if (!collapsable.is_open) { collapsable.open( function () { @@ -180,21 +182,22 @@ var source_url = null; if (!specific_path) source_url = global_path + '+filediff/' + link_data[item.get('id')]; - item.query('.the-link').on( + item.one('.the-link').on( 'click', function(e) { e.preventDefault(); collapsable.toggle(); }); - var collapsable = new Collapsable( + var collapsable = new LH.Collapsable( { - expand_icon: item.query('.expand_diff'), - open_node: item.query('.diffinfo'), + expand_icon: item.one('.expand_diff'), + open_node: item.one('.diffinfo'), close_node: null, source: source_url, is_open: specific_path != null, - loading: item.query('.loading'), - node_process: node_process + loading: item.one('.loading'), + node_process: node_process, + Y: Y }); item.collapsable=collapsable; }); @@ -202,3 +205,4 @@ zoom_to_diff(window.location.hash.substring(1)); } }); +}); Index: unstable/loggerhead/static/javascript/changelog.js =================================================================== --- unstable.orig/loggerhead/static/javascript/changelog.js +++ unstable/loggerhead/static/javascript/changelog.js @@ -1,3 +1,4 @@ +LH.use('node', 'event', function (Y) { function toggle_expand_all(action) { var revlogs = Y.all('.revision_log'); @@ -8,14 +9,14 @@ var collapsable = item.collapsable; if(action == 'close') { - Y.get('#expand_all').setStyle('display','block'); - Y.get('#collapse_all').setStyle('display','none'); + Y.one('#expand_all').setStyle('display','block'); + Y.one('#collapse_all').setStyle('display','none'); collapsable.close(); } else if(action == 'open') { - Y.get('#expand_all').setStyle('display','none'); - Y.get('#collapse_all').setStyle('display','block'); + Y.one('#expand_all').setStyle('display','none'); + Y.one('#collapse_all').setStyle('display','block'); collapsable.open(); } }); @@ -54,17 +55,17 @@ function(item, i) { var revid = revids[item.get('id').replace('log-', '')]; - var collapsable = new Collapsable( + var collapsable = new LH.Collapsable( { - expand_icon: item.query('.expand_icon'), - open_node: item.query('.long_description'), - close_node: item.query('.short_description'), + expand_icon: item.one('.expand_icon'), + open_node: item.one('.long_description'), + close_node: item.one('.short_description'), source: global_path + '+revlog/' + revid, - loading: item.query('.loading'), + loading: item.one('.loading'), is_open: false }); - item.query('.expand_revisioninfo a').on( + item.one('.expand_revisioninfo a').on( 'click', function(e) { e.preventDefault(); @@ -74,3 +75,4 @@ }); }); +}); Index: unstable/loggerhead/apps/branch.py =================================================================== --- unstable.orig/loggerhead/apps/branch.py +++ unstable/loggerhead/apps/branch.py @@ -121,7 +121,7 @@ def yui_url(self, path): if self.use_cdn: - base = 'http://yui.yahooapis.com/3.0.0pr2/build/' + base = 'http://yui.yahooapis.com/3.5.1/build/' else: base = self.static_url('/static/javascript/yui/build/') return base + path debian/control0000644000000000000000000000332312177540501010574 0ustar Source: loggerhead Section: devel Priority: optional Maintainer: Debian Bazaar Maintainers Uploaders: Jelmer Vernooij , Roland Mas Homepage: https://launchpad.net/loggerhead Build-Depends-Indep: bzr (>= 1.17~), bzr (<< 2.7.0), python-testtools, python-subunit, python-bzrlib.tests | bzr (<< 2.4.0~beta1-2), python-sphinx, python-fixtures Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3), python-pkg-resources, python-paste (>= 1.6), python-simpletal, python-simplejson Standards-Version: 3.9.3 X-Python-Version: >= 2.4 Vcs-Bzr: http://bzr.debian.org/pkg-bazaar/loggerhead/unstable/ Vcs-Browser: http://bzr.debian.org/loggerhead/pkg-bazaar/loggerhead/unstable/files Package: loggerhead Architecture: all Depends: ${python:Depends}, python-simpletal, python-pkg-resources, python-paste (>= 1.6), ${misc:Depends}, adduser, python-simplejson, python-bzrlib (>= 1.17~), python-bzrlib (<< 2.7.0), libjs-yui3-min Suggests: python-pastedeploy (>= 1.3.0), loggerhead-doc, bzr Enhances: bzr Recommends: bzr-search, python-pygments Description: Web viewer for Bazaar This is a web viewer for projects in the Bazaar version control system. It can be used to navigate a branch history, annotate files, view patches and perform searches. Package: loggerhead-doc Architecture: all Section: doc Depends: ${misc:Depends}, libjs-jquery, libjs-underscore Suggests: loggerhead Enhances: loggerhead Description: Web viewer for Bazaar (documentation) This is a web viewer for projects in the Bazaar version control system. It can be used to navigate a branch history, annotate files, view patches and perform searches. . This package provides the documentation. debian/loggerhead-doc.doc-base0000644000000000000000000000055712177540202013440 0ustar Document: loggerhead Title: Loggerhead: A web viewer for bzr branches Abstract: Loggerhead is a web viewer for projects in Bazaar. It can be used to navigate a branch history, annotate files, view patches, perform searches, etc. Section: Project Management Format: HTML Index: /usr/share/doc/loggerhead/html/index.html Files: /usr/share/doc/loggerhead/html/*.html debian/source/0000755000000000000000000000000012177541072010474 5ustar debian/source/format0000644000000000000000000000001412177540202011674 0ustar 3.0 (quilt) debian/prerm0000755000000000000000000000003112177540202010233 0ustar #!/bin/sh -e #DEBHELPER# debian/loggerhead.install0000644000000000000000000000045512177540202012663 0ustar /usr/bin/ /usr/lib/ /usr/share/man/ loggerhead/static/css /usr/share/loggerhead/static/ loggerhead/static/downloads /usr/share/loggerhead/static/ loggerhead/static/images /usr/share/loggerhead/static/ loggerhead/static/javascript/*.js /usr/share/loggerhead/static/javascript loggerhead.wsgi /usr/bin/