# # # patch "tracvc/mtn/backend.py" # from [35c9ba8f6a4795f433d9b8588c1945f41ee9e91e] # to [59a61d9bd8479507a3c52ef03fe8cf219edb6ef6] # ============================================================ --- tracvc/mtn/backend.py 35c9ba8f6a4795f433d9b8588c1945f41ee9e91e +++ tracvc/mtn/backend.py 59a61d9bd8479507a3c52ef03fe8cf219edb6ef6 @@ -193,7 +193,7 @@ class MonotoneRepository(Repository): """ Represents a Monotone repository. """ - + def __init__(self, path, log, binary, cachespec, revpropspec = None): Repository.__init__(self, 'mtn:%s' % path, None, log) self.mtn = MTN(path, log, binary, cachespec) @@ -238,6 +238,20 @@ class MonotoneRepository(Repository): rev = self.normalize_rev(rev) or self.get_youngest_rev() return MonotoneNode(self.mtn, rev, path) + def sync(self, feedback=None): + """Perform a sync of the repository cache, if relevant. + + If given, `feedback` must be a callback taking a `rev` parameter. + The backend will call this function for each `rev` it decided to + synchronize, once the synchronization changes are committed to the + cache. + """ + pass + + def sync_changeset(self, rev): + """Resync the repository cache for the given `rev`, if relevant.""" + pass + def get_oldest_rev(self): """ Return the oldest revision stored in the repository.