Пример #1
0
 def _log_helper(self, path, rev, lockinfo):
     rev_root = fs.revision_root(self.fs_ptr, rev)
     copyfrom_rev, copyfrom_path = fs.copied_from(rev_root, path)
     date, author, msg, revprops, changes = self._revinfo(rev)
     if fs.is_file(rev_root, path):
         size = fs.file_length(rev_root, path)
     else:
         size = None
     return Revision(rev, date, author, msg, size, lockinfo, path,
                     copyfrom_path and _cleanup_path(copyfrom_path),
                     copyfrom_rev)
Пример #2
0
 def _log_helper(self, path, rev, lockinfo):
   rev_root = fs.revision_root(self.fs_ptr, rev)
   copyfrom_rev, copyfrom_path = fs.copied_from(rev_root, path)
   date, author, msg, revprops, changes = self._revinfo(rev)
   if fs.is_file(rev_root, path):
     size = fs.file_length(rev_root, path)
   else:
     size = None
   return Revision(rev, date, author, msg, size, lockinfo, path,
                   copyfrom_path and _cleanup_path(copyfrom_path),
                   copyfrom_rev)
Пример #3
0
def _log_helper(svnrepos, rev, path, pool):
    rev_root = fs.revision_root(svnrepos.fs_ptr, rev, pool)

    # Was this path@rev the target of a copy?
    copyfrom_rev, copyfrom_path = fs.copied_from(rev_root, path, pool)

    # Assemble our LogEntry
    datestr, author, msg = _fs_rev_props(svnrepos.fs_ptr, rev, pool)
    date = _datestr_to_date(datestr, pool)
    if fs.is_file(rev_root, path, pool):
        size = fs.file_length(rev_root, path, pool)
    else:
        size = None
    entry = Revision(rev, date, author, msg, size, path, copyfrom_path
                     and _cleanup_path(copyfrom_path), copyfrom_rev)
    return entry
Пример #4
0
def _log_helper(svnrepos, rev, path, pool):
  rev_root = fs.revision_root(svnrepos.fs_ptr, rev, pool)

  # Was this path@rev the target of a copy?
  copyfrom_rev, copyfrom_path = fs.copied_from(rev_root, path, pool)

  # Assemble our LogEntry
  datestr, author, msg = _fs_rev_props(svnrepos.fs_ptr, rev, pool)
  date = _datestr_to_date(datestr, pool)
  if fs.is_file(rev_root, path, pool):
    size = fs.file_length(rev_root, path, pool)
  else:
    size = None
  entry = Revision(rev, date, author, msg, size, path,
                   copyfrom_path and _cleanup_path(copyfrom_path),
                   copyfrom_rev)
  return entry