~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to fai.py

  • Committer: Aaron Bentley
  • Date: 2005-09-29 13:26:07 UTC
  • mto: (147.2.17)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: abentley@panoramicfeedback.com-20050929132607-822df5d29e8e595d
Committed debugging changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#    along with this program; if not, write to the Free Software
16
16
#    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
 
18
 
import pybaz
19
 
from pybaz.backends.baz import sequence_cmd
 
18
from bzrlib.plugins.bzrtools import pybaz
 
19
import pybaz.errors
 
20
from bzrlib.plugins.bzrtools.pybaz.backends.baz import sequence_cmd
20
21
import re
21
22
 
 
23
 
22
24
__docformat__ = "restructuredtext"
23
25
__doc__ = "Utility functions to be used by commands"
24
26
 
60
62
                    if tree_log.revision == log.revision:
61
63
                        found = True
62
64
                print "ancestor of %s is %s" % (log.revision, ancestor)
 
65
        except Exception, e:
 
66
            print repr(e.__class__)
 
67
            print repr(pybaz.errors.ExecProblem)
 
68
            print e.__class__ == pybaz.errors.ExecProblem
 
69
            raise
63
70
        if ancestor is not None:
64
71
            indirect.append(ancestor)
65
72
    return [log for log in logs if not log.revision in indirect]