fromgitpandasimportRepositorytries=[".","../..","../../.."]err=Nonefortintries:try:repo=Repository(working_dir=t,verbose=True)err=NonebreakexceptExceptionase:err=econtinueiferrisnotNone:importosraiseException("issue in current folder '{0}'".format(os.getcwd()))fromerr
One funny function. No idea if that gives a good estimation.
try:use=repo.hours_estimate()exceptExceptionase:# Not always reliable.print(e)use=Noneuse
c:python372_x64libsite-packagesgitpandasrepository.py:461: UserWarning: Warning, extensions and ignore_dir will be deprecated in v2.0.0, please use ignore_globs instead
warnings.warn('Warning, extensions and ignore_dir will be deprecated in v2.0.0, please use ignore_globs instead')
The following cane take some time depending on you repository size.
try:hist=repo.commit_history()exceptExceptionase:# Not always reliable.print(e)importpandashist=pandas.DataFrame()hist.head()
c:python372_x64libsite-packagesgitpandasrepository.py:461: UserWarning: Warning, extensions and ignore_dir will be deprecated in v2.0.0, please use ignore_globs instead
warnings.warn('Warning, extensions and ignore_dir will be deprecated in v2.0.0, please use ignore_globs instead')
author
committer
message
lines
insertions
deletions
net
date
2020-02-20 00:34:22
xavier dupré
xavier dupré
Update notebook_runner.py\n
2
1
1
0
2020-02-20 00:26:08
xavier dupré
xavier dupré
Update config.yml\n
2
1
1
0
2020-02-20 00:14:36
xavier dupré
xavier dupré
Fix bug introduced by previous commit\n
2
1
1
0
2020-02-19 23:57:00
xavier dupré
xavier dupré
removes some specific code added for older ver...
48
25
23
2
2020-02-19 19:57:55
xavier dupré
xavier dupré
Fixes #292, add command to run notebook\n
91
83
8
75
try:histf=repo.file_change_history()exceptExceptionase:# Not always reliable.print(e)importpandashistf=pandas.DataFrame(dict(filename=[""]))histf.head()
c:python372_x64libsite-packagesgitpandasrepository.py:461: UserWarning: Warning, extensions and ignore_dir will be deprecated in v2.0.0, please use ignore_globs instead
warnings.warn('Warning, extensions and ignore_dir will be deprecated in v2.0.0, please use ignore_globs instead')
commit561c3bbe2e0eb9223a25949187a61645c213bb87logsize139Author:xavierdupré<xavier.dupre@>Date:ThuApr2511:19:362019+0200Fixes#246, support projects with no src foldercommita8db6b4b0a2e38f774300acabb2ab46b9677a981logsize142Author:xavierdupré<xavier.dupre@>Date:MonMar2512:31:532019+0100fixesmissingnames,skiplinesmarkedwith# noqacommit7b34578848f96fea15c1fc96c1cece354f87ba90logsize115Author:xavierdupré<xavier.dupre@>Date:SunJul2212:36:292018+0200updatebuild_script.batcommit27b203dd00658808925ab0ed24e91e7f34609254logsize122Author:xavierdupré<xavier.dupre@>Date:ThuMay1700:45:252018+0200documentation,setup,circlecicommit56950d8a1d41163c72e8cb7f1aac45dc2d4e5789logsize112Author:xavierdupré<xavier.dupre@>Date:MonJan813:22:002018+0100fixfailingunittestcommit69c1a226c2f5724102ca2e5f22a1d6a126e701belogsize104Author:xavierdupré<xavier.dupre@>Date:FriDec100:50:582017+0100fixappeveyorcommitf6e286c70b44bac822a51eb38cf48f4c387947dclogsize105Author:xavierdupré<xavier.dupre@>Date:WedNov2912:25:192017+0100updatescriptcommiteba47ba0e8fb6cd7b10f62628a6ae71731b7418flogsize105Author:xavierdupré<xavier.dupre@>Date:SatMar1122:24:452017+0100updatepythoncommit0ca2465e8c2f68762442df1920fbc6300ef09a60logsize102Author:dupre<xavier.dupre@>Date:MonApr2521:18:182016+0200updatebuild_scriptcommitd0dd08cdd12995b4a3e2423b8434bbfcd38d4e66logsize120Author:dupre<xavier.dupre@>Date:FriSep1800:50:442015+0200reverttopython3.4build_script.batcommit0e2306bf7fc99dc15c6f6d0f8a2abeb74bb6b893logsize137Author:dupre<xavier.dupre@>Date:ThuSep1722:05:002015+0200updatetodealwithPython3.5,minimizesdependenciescommit9e6fd6acd73670a3b2aa4098f33f015f5c1ae8a7logsize155Author:dupre<xavier.dupre@>Date:SunMay312:49:382015+0200addthescriptautomationtothemodule,itautomaticallycreatesscripts