Вот острота:
import os
import time
from pprint import pprint
pprint([(x[0], time.ctime(x[1].st_ctime)) for x in sorted([(fn, os.stat(fn)) for fn in os.listdir(".")], key = lambda x: x[1].st_ctime)])
Это называет os.listdir () для получения списка имен файлов, затем называет os.stat () для каждого для получения времени создания, затем виды против времени создания.
Примечание, что этот метод только называет os.stat () однажды для каждого файла, который будет более эффективным, чем вызов его для каждого сравнения в виде.
You can simply copy the folder containing the repositories (e.g. c:\repositories
) to the new machine. That folder contains all the users (in the file htpasswd
) and the access rights (authz
).
Note: this is true if you're using subversion authentication. I'm not sure if it's the same when using windows authentication, but I guess it is, since there's also a file named (authz-windows
).
Detailed instructions:
c:\repositories
)VisualSVN Server Manager
VisualSVN Server (local)
entry in the console and click Properties
c:\repositories
)