diff options
75 files changed, 116 insertions, 89 deletions
@@ -5,6 +5,7 @@ Alexander Belchenko <bialix@ukr.net> Anton Batenev <abbat@abbat> Ben Finney <benf@cybersource.com.au> Chris Ball <cjb@laptop.org> +Dieter Plaetinck <dieter@plaetinck.be> Eric Kow <eric.kow@gmail.com> Gianluca Montecchi <gian@grys.it> Gour <gour@gour-nitai.com> @@ -4,7 +4,7 @@ # Makefile # Part of Bugs Everywhere, a distributed bug tracking system. # -# Copyright (C) 2008-2010 Anton Batenev <abbat@abbat> +# Copyright (C) 2008-2011 Anton Batenev <abbat@abbat> # Ben Finney <benf@cybersource.com.au> # Eric Kow <eric.kow@gmail.com> # Gianluca Montecchi <gian@grys.it> @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Chris Ball <cjb@laptop.org> # Gianluca Montecchi <gian@grys.it> # Oleg Romanyshyn <oromanyshyn@panoramicfeedback.com> diff --git a/doc/generate-libbe-txt.py b/doc/generate-libbe-txt.py index b5145ee..e352310 100644 --- a/doc/generate-libbe-txt.py +++ b/doc/generate-libbe-txt.py @@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright (C) 2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2010-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/doc/tutorial.txt b/doc/tutorial.txt index 0154f5b..7b7220f 100644 --- a/doc/tutorial.txt +++ b/doc/tutorial.txt @@ -15,13 +15,12 @@ and helps keep the bug repository in sync with the code. However, there are some differences compared to centralized bugtrackers. Because bugs and comments can be created by several -users in parallel, they have globally unique -:mod:`IDs </libbe.util.id>` rather than numbers. There is also a +users in parallel, they have globally unique :mod:`IDs +</libbe.util.id>` rather than numbers. There is also a developer-friendly command-line_ interface to compliment the -user-friendly :doc:`web </tutorial-html>` and -:doc:`email </tutorial-email>` interfaces. This tutorial will focus -on the command-line interface as the most powerful, and leave the web -and email interfaces to other documents. +user-friendly :doc:`web </http>` and :doc:`email </email>` interfaces. +This tutorial will focus on the command-line interface as the most +powerful, and leave the web and email interfaces to other documents. .. _command-line: `Command-line interface`_ @@ -358,7 +357,7 @@ To create a static dump of your bug directory, use:: This is a fairly flexible command, see ``be help html`` for details. It works pretty well as the browsable part of a public interface using -the email_ interface for interactive access. +the :doc:`email` for interactive access. BE over HTTP ------------ diff --git a/interfaces/email/interactive/_mailfilterrc b/interfaces/email/interactive/_mailfilterrc index 8c0bd16..e2ef53b 100644 --- a/interfaces/email/interactive/_mailfilterrc +++ b/interfaces/email/interactive/_mailfilterrc @@ -1,5 +1,5 @@ -# Copyright (C) 2010 Gour <gour@gour-nitai.com> -# W. Trevor King <wking@drexel.edu> +# Copyright (C) 2010-2011 Gour <gour@gour-nitai.com> +# W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/interfaces/email/interactive/_procmailrc b/interfaces/email/interactive/_procmailrc index be42e27..922e575 100644 --- a/interfaces/email/interactive/_procmailrc +++ b/interfaces/email/interactive/_procmailrc @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/interfaces/email/interactive/be-handle-mail b/interfaces/email/interactive/be-handle-mail index a82e0f8..0933498 100755 --- a/interfaces/email/interactive/be-handle-mail +++ b/interfaces/email/interactive/be-handle-mail @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/interfaces/email/interactive/send_pgp_mime.py b/interfaces/email/interactive/send_pgp_mime.py index c9e531d..2e6c487 100644 --- a/interfaces/email/interactive/send_pgp_mime.py +++ b/interfaces/email/interactive/send_pgp_mime.py @@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/__init__.py b/libbe/__init__.py index 50081a3..d5a8f2e 100644 --- a/libbe/__init__.py +++ b/libbe/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/bug.py b/libbe/bug.py index d0914b4..6d3d836 100644 --- a/libbe/bug.py +++ b/libbe/bug.py @@ -1,4 +1,4 @@ -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # Thomas Habets <thomas@habets.pp.se> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/bugdir.py b/libbe/bugdir.py index 0aa4015..9741239 100644 --- a/libbe/bugdir.py +++ b/libbe/bugdir.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Alexander Belchenko <bialix@ukr.net> # Chris Ball <cjb@laptop.org> # Gianluca Montecchi <gian@grys.it> diff --git a/libbe/command/__init__.py b/libbe/command/__init__.py index 0d74ca0..1cad096 100644 --- a/libbe/command/__init__.py +++ b/libbe/command/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/command/assign.py b/libbe/command/assign.py index d6b3e90..0b3f407 100644 --- a/libbe/command/assign.py +++ b/libbe/command/assign.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # Marien Zwart <marien.zwart@gmail.com> # Thomas Gerigk <tgerigk@gmx.de> diff --git a/libbe/command/base.py b/libbe/command/base.py index 4814a17..b5f5a22 100644 --- a/libbe/command/base.py +++ b/libbe/command/base.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/command/comment.py b/libbe/command/comment.py index 20a66c3..d182840 100644 --- a/libbe/command/comment.py +++ b/libbe/command/comment.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/command/commit.py b/libbe/command/commit.py index e56cad4..a2ed051 100644 --- a/libbe/command/commit.py +++ b/libbe/command/commit.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/command/depend.py b/libbe/command/depend.py index 0fd8f2e..9ae449a 100644 --- a/libbe/command/depend.py +++ b/libbe/command/depend.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/command/diff.py b/libbe/command/diff.py index e15fc34..08a7efb 100644 --- a/libbe/command/diff.py +++ b/libbe/command/diff.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/command/due.py b/libbe/command/due.py index a24f311..e4fd0f1 100644 --- a/libbe/command/due.py +++ b/libbe/command/due.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/command/help.py b/libbe/command/help.py index fee71c7..e4825f0 100644 --- a/libbe/command/help.py +++ b/libbe/command/help.py @@ -1,4 +1,4 @@ -# Copyright (C) 2006-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # Marien Zwart <marien.zwart@gmail.com> # Thomas Gerigk <tgerigk@gmx.de> diff --git a/libbe/command/html.py b/libbe/command/html.py index 0c5cad1..5b0f84c 100644 --- a/libbe/command/html.py +++ b/libbe/command/html.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # Mathieu Clabaut <mathieu.clabaut@gmail.com> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/command/import_xml.py b/libbe/command/import_xml.py index bd6504e..bd25372 100644 --- a/libbe/command/import_xml.py +++ b/libbe/command/import_xml.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/command/init.py b/libbe/command/init.py index 1a2adbf..92e07f9 100644 --- a/libbe/command/init.py +++ b/libbe/command/init.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/command/list.py b/libbe/command/list.py index 69715ca..9eda277 100644 --- a/libbe/command/list.py +++ b/libbe/command/list.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # Oleg Romanyshyn <oromanyshyn@panoramicfeedback.com> # W. Trevor King <wking@drexel.edu> diff --git a/libbe/command/merge.py b/libbe/command/merge.py index deb6db1..7fd62bb 100644 --- a/libbe/command/merge.py +++ b/libbe/command/merge.py @@ -1,4 +1,4 @@ -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/command/new.py b/libbe/command/new.py index e86039f..7dfbed8 100644 --- a/libbe/command/new.py +++ b/libbe/command/new.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/command/remove.py b/libbe/command/remove.py index d6837b6..1d4f265 100644 --- a/libbe/command/remove.py +++ b/libbe/command/remove.py @@ -1,4 +1,7 @@ -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> +# Gianluca Montecchi <gian@grys.it> +# Marien Zwart <marien.zwart@gmail.com> +# Thomas Gerigk <tgerigk@gmx.de> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/command/serve.py b/libbe/command/serve.py index b2d9cbe..ba4b0d8 100644 --- a/libbe/command/serve.py +++ b/libbe/command/serve.py @@ -1,4 +1,4 @@ -# Copyright (C) 2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2010-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/command/set.py b/libbe/command/set.py index ac580d9..b3eb583 100644 --- a/libbe/command/set.py +++ b/libbe/command/set.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # Marien Zwart <marien.zwart@gmail.com> # Thomas Gerigk <tgerigk@gmx.de> diff --git a/libbe/command/severity.py b/libbe/command/severity.py index fd4482f..a84efe8 100644 --- a/libbe/command/severity.py +++ b/libbe/command/severity.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # Marien Zwart <marien.zwart@gmail.com> # Thomas Gerigk <tgerigk@gmx.de> diff --git a/libbe/command/show.py b/libbe/command/show.py index 27be07c..ea86191 100644 --- a/libbe/command/show.py +++ b/libbe/command/show.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # Thomas Gerigk <tgerigk@gmx.de> # Thomas Habets <thomas@habets.pp.se> @@ -58,9 +58,9 @@ class Show (libbe.command.Command): <be-xml> <version> <tag>...</tag> - <branch-nick>...</branch-nick> - <revno>...</revno> - <revision-id>...</revision-id> + <committer>...</committer> + <date>...</date> + <revision>...</revision> </version> <bug> <uuid>a</uuid> @@ -156,8 +156,7 @@ def _xml_header(encoding): '<be-xml>', ' <version>', ' <tag>%s</tag>' % libbe.version.version()] - for tag in ['branch-nick', 'revno', 'revision-id']: - value = libbe.version.version_info[tag.replace('-', '_')] + for tag,value in sorted(libbe.version.version_info.items()): lines.append(' <%s>%s</%s>' % (tag, value, tag)) lines.append(' </version>') return lines diff --git a/libbe/command/status.py b/libbe/command/status.py index aa72db8..2e470e4 100644 --- a/libbe/command/status.py +++ b/libbe/command/status.py @@ -1,4 +1,7 @@ -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> +# Gianluca Montecchi <gian@grys.it> +# Marien Zwart <marien.zwart@gmail.com> +# Thomas Gerigk <tgerigk@gmx.de> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/command/subscribe.py b/libbe/command/subscribe.py index 6001e03..f49abb9 100644 --- a/libbe/command/subscribe.py +++ b/libbe/command/subscribe.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/command/tag.py b/libbe/command/tag.py index 156bc6f..dea6e00 100644 --- a/libbe/command/tag.py +++ b/libbe/command/tag.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/command/target.py b/libbe/command/target.py index a2911be..df63518 100644 --- a/libbe/command/target.py +++ b/libbe/command/target.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Chris Ball <cjb@laptop.org> # Gianluca Montecchi <gian@grys.it> # Marien Zwart <marien.zwart@gmail.com> diff --git a/libbe/command/util.py b/libbe/command/util.py index 6662834..d8e049e 100644 --- a/libbe/command/util.py +++ b/libbe/command/util.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/comment.py b/libbe/comment.py index ee2857b..6350e2c 100644 --- a/libbe/comment.py +++ b/libbe/comment.py @@ -1,4 +1,4 @@ -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # Thomas Habets <thomas@habets.pp.se> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/diff.py b/libbe/diff.py index 4a9b9ff..1802be4 100644 --- a/libbe/diff.py +++ b/libbe/diff.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/error.py b/libbe/error.py index 80593f9..f385db0 100644 --- a/libbe/error.py +++ b/libbe/error.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/storage/__init__.py b/libbe/storage/__init__.py index 1bf4ae7..90e3b0d 100644 --- a/libbe/storage/__init__.py +++ b/libbe/storage/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/storage/base.py b/libbe/storage/base.py index 6ab043d..ef42c98 100644 --- a/libbe/storage/base.py +++ b/libbe/storage/base.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/storage/http.py b/libbe/storage/http.py index 9f9348e..4cf0f84 100644 --- a/libbe/storage/http.py +++ b/libbe/storage/http.py @@ -1,4 +1,4 @@ -# Copyright (C) 2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2010-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/storage/util/config.py b/libbe/storage/util/config.py index 664215c..8a3d7c8 100644 --- a/libbe/storage/util/config.py +++ b/libbe/storage/util/config.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/storage/util/mapfile.py b/libbe/storage/util/mapfile.py index 73c98d8..9eca586 100644 --- a/libbe/storage/util/mapfile.py +++ b/libbe/storage/util/mapfile.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/storage/util/properties.py b/libbe/storage/util/properties.py index ba78032..152f5cc 100644 --- a/libbe/storage/util/properties.py +++ b/libbe/storage/util/properties.py @@ -1,5 +1,5 @@ # Bugs Everywhere - a distributed bugtracker -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/storage/util/settings_object.py b/libbe/storage/util/settings_object.py index 47a85b1..2026906 100644 --- a/libbe/storage/util/settings_object.py +++ b/libbe/storage/util/settings_object.py @@ -1,5 +1,5 @@ # Bugs Everywhere - a distributed bugtracker -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/storage/util/upgrade.py b/libbe/storage/util/upgrade.py index 74d0240..45e3058 100644 --- a/libbe/storage/util/upgrade.py +++ b/libbe/storage/util/upgrade.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/storage/vcs/__init__.py b/libbe/storage/vcs/__init__.py index 49b0ce3..47d92db 100644 --- a/libbe/storage/vcs/__init__.py +++ b/libbe/storage/vcs/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/storage/vcs/arch.py b/libbe/storage/vcs/arch.py index 129e198..d12a91a 100644 --- a/libbe/storage/vcs/arch.py +++ b/libbe/storage/vcs/arch.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Ben Finney <benf@cybersource.com.au> # Gianluca Montecchi <gian@grys.it> # James Rowe <jnrowe@ukfsn.org> diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py index 11ce754..570af17 100644 --- a/libbe/storage/vcs/base.py +++ b/libbe/storage/vcs/base.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Alexander Belchenko <bialix@ukr.net> # Ben Finney <benf@cybersource.com.au> # Chris Ball <cjb@laptop.org> diff --git a/libbe/storage/vcs/bzr.py b/libbe/storage/vcs/bzr.py index 616a486..1862975 100644 --- a/libbe/storage/vcs/bzr.py +++ b/libbe/storage/vcs/bzr.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Ben Finney <benf@cybersource.com.au> # Gianluca Montecchi <gian@grys.it> # Marien Zwart <marien.zwart@gmail.com> @@ -136,12 +136,14 @@ class Bzr(base.VCS): cmd = bzrlib.builtins.cmd_root() cmd.outf = StringIO.StringIO() cmd.run(filename=path) + cmd.cleanup_now() return cmd.outf.getvalue().rstrip('\n') def _vcs_init(self, path): cmd = bzrlib.builtins.cmd_init() cmd.outf = StringIO.StringIO() cmd.run(location=path) + cmd.cleanup_now() def _vcs_destroy(self): vcs_dir = os.path.join(self.repo, '.bzr') @@ -153,6 +155,7 @@ class Bzr(base.VCS): cmd = bzrlib.builtins.cmd_add() cmd.outf = StringIO.StringIO() cmd.run(file_list=[path], file_ids_from=self.repo) + cmd.cleanup_now() def _vcs_exists(self, path, revision=None): manifest = self._vcs_listdir( @@ -167,6 +170,7 @@ class Bzr(base.VCS): cmd = bzrlib.builtins.cmd_remove() cmd.outf = StringIO.StringIO() cmd.run(file_list=[path], file_deletion_strategy='force') + cmd.cleanup_now() def _vcs_update(self, path): pass @@ -202,6 +206,7 @@ class Bzr(base.VCS): if self.version_cmp(2,0,0) < 0: cmd.outf = sys.stdout sys.stdout = stdout + cmd.cleanup_now() return cmd.outf.getvalue() def _vcs_path(self, id, revision): @@ -236,6 +241,8 @@ class Bzr(base.VCS): if 'not present in revision' in str(e): raise base.InvalidPath(path, root=self.repo, revision=revision) raise + finally: + cmd.cleanup_now() children = cmd.outf.getvalue().rstrip('\n').splitlines() children = [self._u_rel_path(c, path) for c in children] if self.version_cmp(2,0,0) < 0 and recursive == False: @@ -257,12 +264,14 @@ class Bzr(base.VCS): raise finally: os.chdir(cwd) + cmd.cleanup_now() return self._vcs_revision_id(-1) def _vcs_revision_id(self, index): cmd = bzrlib.builtins.cmd_revno() cmd.outf = StringIO.StringIO() cmd.run(location=self.repo) + cmd.cleanup_now() current_revision = int(cmd.outf.getvalue()) if index > current_revision or index < -current_revision: return None @@ -281,6 +290,7 @@ class Bzr(base.VCS): status = cmd.run(revision=revision, file_list=[self.repo]) finally: sys.stdout = stdout + cmd.cleanup_now() assert status in [0,1], "Invalid status %d" % status return cmd.outf.getvalue() diff --git a/libbe/storage/vcs/darcs.py b/libbe/storage/vcs/darcs.py index 7ff4554..4aa8766 100644 --- a/libbe/storage/vcs/darcs.py +++ b/libbe/storage/vcs/darcs.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. @@ -229,8 +229,9 @@ class Darcs(base.VCS): descendents = [self._u_rel_path(f, path) for f in files if f != '.'] else: - descendents = [self._u_rel_path(f, path) for f in files - if f.startswith(path)] + rel_files = [self._u_rel_path(f, path) for f in files] + descendents = [f for f in rel_files + if f != '.' and not f.startswith('..')] return [f for f in descendents if f.count(os.path.sep) == 0] # Darcs versions <= 2.3.1 lack the --patch option for 'show files' raise NotImplementedError diff --git a/libbe/storage/vcs/git.py b/libbe/storage/vcs/git.py index c9f10fe..7c9199d 100644 --- a/libbe/storage/vcs/git.py +++ b/libbe/storage/vcs/git.py @@ -1,4 +1,4 @@ -# Copyright (C) 2008-2010 Ben Finney <benf@cybersource.com.au> +# Copyright (C) 2008-2011 Ben Finney <benf@cybersource.com.au> # Chris Ball <cjb@laptop.org> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> diff --git a/libbe/storage/vcs/hg.py b/libbe/storage/vcs/hg.py index 7e2fa86..d610352 100644 --- a/libbe/storage/vcs/hg.py +++ b/libbe/storage/vcs/hg.py @@ -1,6 +1,7 @@ -# Copyright (C) 2007-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Ben Finney <benf@cybersource.com.au> # Gianluca Montecchi <gian@grys.it> +# Marien Zwart <marien.zwart@gmail.com> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/storage/vcs/monotone.py b/libbe/storage/vcs/monotone.py index 1e15aa4..65ecd91 100644 --- a/libbe/storage/vcs/monotone.py +++ b/libbe/storage/vcs/monotone.py @@ -1,4 +1,4 @@ -# Copyright (C) 2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2010-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/ui/__init__.py b/libbe/ui/__init__.py index 4fabc55..227269c 100644 --- a/libbe/ui/__init__.py +++ b/libbe/ui/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/ui/command_line.py b/libbe/ui/command_line.py index 04c8a29..a82b2e1 100644 --- a/libbe/ui/command_line.py +++ b/libbe/ui/command_line.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/ui/util/__init__.py b/libbe/ui/util/__init__.py index 4fabc55..227269c 100644 --- a/libbe/ui/util/__init__.py +++ b/libbe/ui/util/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/ui/util/editor.py b/libbe/ui/util/editor.py index 3ef0a31..dcf73c8 100644 --- a/libbe/ui/util/editor.py +++ b/libbe/ui/util/editor.py @@ -1,5 +1,5 @@ # Bugs Everywhere, a distributed bugtracker -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/ui/util/pager.py b/libbe/ui/util/pager.py index c3436ad..d82dcef 100644 --- a/libbe/ui/util/pager.py +++ b/libbe/ui/util/pager.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/ui/util/user.py b/libbe/ui/util/user.py index e63d9fa..35665e4 100644 --- a/libbe/ui/util/user.py +++ b/libbe/ui/util/user.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/util/__init__.py b/libbe/util/__init__.py index ca63a9a..b9166f0 100644 --- a/libbe/util/__init__.py +++ b/libbe/util/__init__.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/util/encoding.py b/libbe/util/encoding.py index b74b647..5950bb9 100644 --- a/libbe/util/encoding.py +++ b/libbe/util/encoding.py @@ -1,4 +1,4 @@ -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/util/id.py b/libbe/util/id.py index 7b9554e..8d8c75c 100644 --- a/libbe/util/id.py +++ b/libbe/util/id.py @@ -1,4 +1,4 @@ -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/util/plugin.py b/libbe/util/plugin.py index f673f14..b6200fc 100644 --- a/libbe/util/plugin.py +++ b/libbe/util/plugin.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # Marien Zwart <marien.zwart@gmail.com> # W. Trevor King <wking@drexel.edu> diff --git a/libbe/util/subproc.py b/libbe/util/subproc.py index fcc0b6b..b10f84a 100644 --- a/libbe/util/subproc.py +++ b/libbe/util/subproc.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # diff --git a/libbe/util/tree.py b/libbe/util/tree.py index af14300..f676b0b 100644 --- a/libbe/util/tree.py +++ b/libbe/util/tree.py @@ -1,5 +1,5 @@ # Bugs Everywhere, a distributed bugtracker -# Copyright (C) 2008-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2008-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/libbe/util/utility.py b/libbe/util/utility.py index 92e1a0c..3f9a1b0 100644 --- a/libbe/util/utility.py +++ b/libbe/util/utility.py @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # diff --git a/libbe/version.py b/libbe/version.py index 3246c97..b695b13 100644 --- a/libbe/version.py +++ b/libbe/version.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. @@ -40,7 +40,7 @@ except ImportError, e: } # Manually set a version string (optional, defaults to bzr revision id) -#_VERSION = "1.2.3" +_VERSION = '1.0.0' def version(verbose=False): """ diff --git a/misc/xml/be-mail-to-xml b/misc/xml/be-mail-to-xml index 747ed5f..adaaf5e 100755 --- a/misc/xml/be-mail-to-xml +++ b/misc/xml/be-mail-to-xml @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. diff --git a/misc/xml/be-xml-to-mbox b/misc/xml/be-xml-to-mbox index c70f67e..d947d1c 100755 --- a/misc/xml/be-xml-to-mbox +++ b/misc/xml/be-xml-to-mbox @@ -1,5 +1,5 @@ #!/usr/bin/env python -# Copyright (C) 2009-2010 Gianluca Montecchi <gian@grys.it> +# Copyright (C) 2009-2011 Gianluca Montecchi <gian@grys.it> # W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. @@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # @@ -119,6 +119,11 @@ def set_vcs_name(be_dir, vcs_name='None'): invoke(['sed', '-i', "s/^vcs_name:.*/vcs_name: %s/" % vcs_name, filename]) +def make_id_cache(): + """Generate .be/id-cache so users won't need to. + """ + invoke(['./be', 'list']) + def create_tarball(tag): release_name='be-%s' % tag export_dir = release_name @@ -130,7 +135,12 @@ def create_tarball(tag): shutil.copy(os.path.join('libbe', '_version.py'), os.path.join(export_dir, 'libbe', '_version.py')) make_changelog(os.path.join(export_dir, 'ChangeLog'), tag) + make_id_cache() + print 'copy .be/id-cache to %s/.be/id-cache' % export_dir + shutil.copy(os.path.join('.be', 'id-cache'), + os.path.join(export_dir, '.be', 'id-cache')) set_vcs_name(os.path.join(export_dir, '.be')) + os.remove(os.path.join(export_dir, 'update_copyright.py')) tarball_file = '%s.tar.gz' % release_name print 'create tarball', tarball_file invoke(['tar', '-czf', tarball_file, export_dir]) @@ -1,4 +1,4 @@ -# Copyright (C) 2005-2010 Aaron Bentley <abentley@panoramicfeedback.com> +# Copyright (C) 2005-2011 Aaron Bentley <abentley@panoramicfeedback.com> # Marien Zwart <marien.zwart@gmail.com> # W. Trevor King <wking@drexel.edu> # diff --git a/update_copyright.py b/update_copyright.py index 86b26b2..9e57c6e 100755 --- a/update_copyright.py +++ b/update_copyright.py @@ -1,6 +1,6 @@ #!/usr/bin/python # -# Copyright (C) 2009-2010 W. Trevor King <wking@drexel.edu> +# Copyright (C) 2009-2011 W. Trevor King <wking@drexel.edu> # # This file is part of Bugs Everywhere. # |