Exemplo n.º 1
0
 def do_settxn(self, arg):
   """set the current transaction to view"""
   try:
     txnobj = fs.open_txn(self.fs_ptr, arg)
     newroot = fs.txn_root(txnobj)
   except:
     print("Error setting the transaction to '" + arg + "'.")
     return
   fs.close_root(self.root)
   self.root = newroot
   self.txn = arg
   self.is_rev = 0
   self._do_path_landing()
Exemplo n.º 2
0
 def do_settxn(self, arg):
   """set the current transaction to view"""
   try:
     txnobj = fs.open_txn(self.fs_ptr, arg)
     newroot = fs.txn_root(txnobj)
   except:
     print("Error setting the transaction to '" + arg + "'.")
     return
   fs.close_root(self.root)
   self.root = newroot
   self.txn = arg
   self.is_rev = 0
   self._do_path_landing()
Exemplo n.º 3
0
 def do_setrev(self, arg):
   """set the current revision to view"""
   try:
     if arg.lower() == 'head':
       rev = fs.youngest_rev(self.fs_ptr)
     else:
       rev = int(arg)
     newroot = fs.revision_root(self.fs_ptr, rev)
   except:
     print("Error setting the revision to '" + arg + "'.")
     return
   fs.close_root(self.root)
   self.root = newroot
   self.rev = rev
   self.is_rev = 1
   self._do_path_landing()
Exemplo n.º 4
0
 def do_setrev(self, arg):
   """set the current revision to view"""
   try:
     if arg.lower() == 'head':
       rev = fs.youngest_rev(self.fs_ptr)
     else:
       rev = int(arg)
     newroot = fs.revision_root(self.fs_ptr, rev)
   except:
     print("Error setting the revision to '" + arg + "'.")
     return
   fs.close_root(self.root)
   self.root = newroot
   self.rev = rev
   self.is_rev = 1
   self._do_path_landing()