aboutsummaryrefslogtreecommitdiffstats
path: root/becommands
diff options
context:
space:
mode:
authorChris Ball <cjb@laptop.org>2009-07-02 14:00:04 -0400
committerChris Ball <cjb@laptop.org>2009-07-02 14:00:04 -0400
commit64f62aa2bb841c483e8cb2b663434b3ad3038f4c (patch)
tree644cfa2fef611ad265d3116ac83026bf0181f7c1 /becommands
parent21a0bb0ae113ad9eaa6d94d36c8d0e5ca8508d7f (diff)
parenta536332660c8374e2000541e2db5ad6cea3b0e5e (diff)
downloadbugseverywhere-64f62aa2bb841c483e8cb2b663434b3ad3038f4c.tar.gz
Pull darcs fix, copyright updates from W. Trevor King
Diffstat (limited to 'becommands')
-rw-r--r--becommands/assign.py5
-rw-r--r--becommands/close.py5
-rw-r--r--becommands/comment.py4
-rw-r--r--becommands/diff.py3
-rw-r--r--becommands/help.py4
-rw-r--r--becommands/init.py34
-rw-r--r--becommands/list.py5
-rw-r--r--becommands/merge.py2
-rw-r--r--becommands/new.py3
-rw-r--r--becommands/open.py5
-rw-r--r--becommands/remove.py2
-rw-r--r--becommands/set.py6
-rw-r--r--becommands/severity.py5
-rw-r--r--becommands/show.py6
-rw-r--r--becommands/status.py2
-rw-r--r--becommands/target.py7
16 files changed, 67 insertions, 31 deletions
diff --git a/becommands/assign.py b/becommands/assign.py
index 2f9ff21..985cfdd 100644
--- a/becommands/assign.py
+++ b/becommands/assign.py
@@ -1,4 +1,7 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Marien Zwart <marienz@gentoo.org>
+# Thomas Gerigk <tgerigk@gmx.de>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/close.py b/becommands/close.py
index d8826b0..deaccce 100644
--- a/becommands/close.py
+++ b/becommands/close.py
@@ -1,4 +1,7 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Marien Zwart <marienz@gentoo.org>
+# Thomas Gerigk <tgerigk@gmx.de>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/comment.py b/becommands/comment.py
index 09f246a..0b3a576 100644
--- a/becommands/comment.py
+++ b/becommands/comment.py
@@ -1,4 +1,6 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Chris Ball <cjb@laptop.org>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/diff.py b/becommands/diff.py
index c090fa8..2bdea93 100644
--- a/becommands/diff.py
+++ b/becommands/diff.py
@@ -1,4 +1,5 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/help.py b/becommands/help.py
index 7e0209d..b0b182d 100644
--- a/becommands/help.py
+++ b/becommands/help.py
@@ -1,4 +1,6 @@
-# Copyright (C) 2006 Thomas Gerigk
+# Copyright (C) 2006-2009 Aaron Bentley and Panometrics, Inc.
+# Thomas Gerigk <tgerigk@gmx.de>
+# W. Trevor King <wking@drexel.edu>
# <tgerigk@gmx.de>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/init.py b/becommands/init.py
index e3896e9..390dd15 100644
--- a/becommands/init.py
+++ b/becommands/init.py
@@ -1,4 +1,5 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
@@ -29,7 +30,7 @@ def execute(args, test=False):
... except bugdir.NoBugDir, e:
... True
True
- >>> execute([dir.path], test=True)
+ >>> execute(['--root', dir.path], test=True)
No revision control detected.
Directory initialized.
>>> del(dir)
@@ -46,11 +47,11 @@ def execute(args, test=False):
>>> rcs.cleanup()
>>> try:
- ... execute(['.'], test=True)
+ ... execute(['--root', '.'], test=True)
... except cmdutil.UserError, e:
... str(e).startswith("Directory already initialized: ")
True
- >>> execute(['/highly-unlikely-to-exist'], test=True)
+ >>> execute(['--root', '/highly-unlikely-to-exist'], test=True)
Traceback (most recent call last):
UserError: No such directory: /highly-unlikely-to-exist
>>> os.chdir('/')
@@ -58,19 +59,17 @@ def execute(args, test=False):
parser = get_parser()
options, args = parser.parse_args(args)
cmdutil.default_complete(options, args, parser)
- if len(args) > 1:
+ if len(args) > 0:
raise cmdutil.UsageError
- if len(args) == 1:
- basedir = args[0]
- else:
- basedir = "."
try:
- bd = bugdir.BugDir(basedir, from_disk=False, sink_to_existing_root=False, assert_new_BugDir=True,
+ bd = bugdir.BugDir(options.root_dir, from_disk=False,
+ sink_to_existing_root=False,
+ assert_new_BugDir=True,
manipulate_encodings=not test)
except bugdir.NoRootEntry:
- raise cmdutil.UserError("No such directory: %s" % basedir)
+ raise cmdutil.UserError("No such directory: %s" % options.root_dir)
except bugdir.AlreadyInitialized:
- raise cmdutil.UserError("Directory already initialized: %s" % basedir)
+ raise cmdutil.UserError("Directory already initialized: %s" % options.root_dir)
bd.save()
if bd.rcs.name is not "None":
print "Using %s for revision control." % bd.rcs.name
@@ -79,7 +78,10 @@ def execute(args, test=False):
print "Directory initialized."
def get_parser():
- parser = cmdutil.CmdOptionParser("be init [DIRECTORY]")
+ parser = cmdutil.CmdOptionParser("be init")
+ parser.add_option("-r", "--root", metavar="DIR", dest="root_dir",
+ help="Set root dir to something other than the current directory.",
+ default=".")
return parser
longhelp="""
@@ -90,9 +92,9 @@ system. You can use "be set rcs_name" to change the rcs being used.
The directory defaults to your current working directory.
It is usually a good idea to put the Bugs Everywhere root at the source code
-root, but you can put it anywhere. If you run "be init" in a subdirectory,
-then only bugs created in that subdirectory (and its children) will appear
-there.
+root, but you can put it anywhere. If you root Bugs Everywhere in a
+subdirectory, then only bugs created in that subdirectory (and its children)
+will appear there.
"""
def help():
diff --git a/becommands/list.py b/becommands/list.py
index c397024..443704b 100644
--- a/becommands/list.py
+++ b/becommands/list.py
@@ -1,4 +1,7 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Chris Ball <cjb@laptop.org>
+# Oleg Romanyshyn <oromanyshyn@panoramicfeedback.com>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/merge.py b/becommands/merge.py
index 8232282..4bec6bf 100644
--- a/becommands/merge.py
+++ b/becommands/merge.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2008-2009 W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/new.py b/becommands/new.py
index 1c5246c..32e070a 100644
--- a/becommands/new.py
+++ b/becommands/new.py
@@ -1,4 +1,5 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/open.py b/becommands/open.py
index 7a18fd0..f9abcbb 100644
--- a/becommands/open.py
+++ b/becommands/open.py
@@ -1,4 +1,7 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Marien Zwart <marienz@gentoo.org>
+# Thomas Gerigk <tgerigk@gmx.de>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/remove.py b/becommands/remove.py
index fa264b8..213a8d9 100644
--- a/becommands/remove.py
+++ b/becommands/remove.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2008-2009 W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/set.py b/becommands/set.py
index c8bbe4f..e771018 100644
--- a/becommands/set.py
+++ b/becommands/set.py
@@ -1,4 +1,8 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Chris Ball <cjb@laptop.org>
+# Marien Zwart <marienz@gentoo.org>
+# Thomas Gerigk <tgerigk@gmx.de>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/severity.py b/becommands/severity.py
index 5d27222..f8a0c02 100644
--- a/becommands/severity.py
+++ b/becommands/severity.py
@@ -1,4 +1,7 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Marien Zwart <marienz@gentoo.org>
+# Thomas Gerigk <tgerigk@gmx.de>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/show.py b/becommands/show.py
index b33a96b..ff434ab 100644
--- a/becommands/show.py
+++ b/becommands/show.py
@@ -1,4 +1,8 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Chris Ball <cjb@laptop.org>
+# Thomas Gerigk <tgerigk@gmx.de>
+# Thomas Habets <thomas@habets.pp.se>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/status.py b/becommands/status.py
index 40e9b51..d8bd4c4 100644
--- a/becommands/status.py
+++ b/becommands/status.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2008-2009 W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify
diff --git a/becommands/target.py b/becommands/target.py
index b2d1ffd..283998a 100644
--- a/becommands/target.py
+++ b/becommands/target.py
@@ -1,4 +1,9 @@
-# Copyright (C) 2005 Aaron Bentley and Panometrics, Inc.
+# Copyright (C) 2005-2009 Aaron Bentley and Panometrics, Inc.
+# Chris Ball <cjb@laptop.org>
+# Gianluca Montecchi <gian@grys.it>
+# Marien Zwart <marienz@gentoo.org>
+# Thomas Gerigk <tgerigk@gmx.de>
+# W. Trevor King <wking@drexel.edu>
# <abentley@panoramicfeedback.com>
#
# This program is free software; you can redistribute it and/or modify