Exemplo n.º 1
0
 def _add_copy(self, copied_from_rev, copied_to_path, rev):
     copy = (copied_to_path, rev)
     if "copies" in self:
         copies = self["copies"]
         if copied_from_rev in copies:
             l = copies[copied_from_rev]
             if (copied_to_path, rev) not in l:
                 l.append((copied_to_path, rev))
         else:
             copies[copied_from_rev] = [(copied_to_path, rev)]
     else:
         ConfigDict.__setitem__(self, "copies", {copied_from_rev: [(copied_to_path, rev)]})
Exemplo n.º 2
0
 def _add_copy(self, copied_from_rev, path, rev):
     copy = (path, rev)
     if 'copies' in self:
         copies = self['copies']
         if copied_from_rev in copies:
             l = copies[copied_from_rev]
             if (path, rev) not in l:
                 l.append((path, rev))
         else:
             copies[copied_from_rev] = [ (path, rev), ]
     else:
         ConfigDict.__setitem__(
             self,
             'copies',
             { copied_from_rev : [ (path, rev), ] }
         )
Exemplo n.º 3
0
 def __init__(self, parent, roots):
     ConfigDict.__init__(self, parent, 'roots', roots)
Exemplo n.º 4
0
 def __init__(self, parent, roots):
     ConfigDict.__init__(self, parent, 'roots', roots)
Exemplo n.º 5
0
 def __init__(self, parent, roots):
     ConfigDict.__init__(self, parent, "roots", roots)