~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to obsolete/baz2bzr

  • Committer: Aaron Bentley
  • Date: 2005-10-29 21:29:55 UTC
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: abentley@panoramicfeedback.com-20051029212955-132d343a64ac80bc
Switched to TreeDelta.has_changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#    along with this program; if not, write to the Free Software
18
18
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
19
 
20
 
from baz_import import import_version, UserError
 
20
import sys
 
21
from errors import NoPyBaz
 
22
try:
 
23
    from baz_import import import_version, UserError
 
24
except NoPyBaz:
 
25
    print >> sys.stderr, "This command requires PyBaz.  Please ensure that it is installed."
 
26
    sys.exit(1)
 
27
 
21
28
import pybaz
22
 
import sys
23
29
import os.path
24
30
 
25
31
def main(args):
66
72
        else:
67
73
            return 0
68
74
    if len(args) == 2:
69
 
        version,output_dir = args[1]
 
75
        version,output_dir = args
70
76
            
71
77
    elif len(args) == 1:
72
78
        output_dir = args[0]