Script 1algorithem: Python Bash Code For Git Directories
This document contains instructions for two Python Bash scripts. The first script checks the size of a Git repository and compares it to the previous size. It prints messages based on whether the size increased, stayed the same, or if there was an error connecting. The second script generates a report on migrating an SVN repository to Git. It provides statistics on authors, first and last commits, and compares authors between Git and SVN.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
18 views
Script 1algorithem: Python Bash Code For Git Directories
This document contains instructions for two Python Bash scripts. The first script checks the size of a Git repository and compares it to the previous size. It prints messages based on whether the size increased, stayed the same, or if there was an error connecting. The second script generates a report on migrating an SVN repository to Git. It provides statistics on authors, first and last commits, and compares authors between Git and SVN.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Script 1Algorithem
Python Bash code for git directories:
1. Pwd: Print working directory 2. Awk: Loop over the line 3. |: Pipe operator 4. du: Show file space 5. Begin 6. Print git commits is > gitcountfile 7. Print working directory 8. Redirects the output of the first command to the input of the second command and store it in gitsize. 9. Print gitsize value 10. If gitsize value is greater than git_old_size 11. Print gitsize > git_old_size 12. Show working directory name 13. Set Git Size Status Git size not increase 14. Stop script 15. Exit process 16. End the construct 17. Else 18. Set Git commit status Git commit Count not increase 19. Stop script 20. Exit process 21. End the construct 22. Else 23. Print Git Not able to connect and 24. Set Git connection status Git Not able to connect 25. Stop script 26. Exit process 27. End the construct 28. Check SVN repository http://192.168.0.101 29. Use the cd command followed by periods to return to the folder you were in before you entered the SVN directory 30. Redirect the SVN info, grep Revision into awk print fun and store values in svncommits
Script No 2
1. -d: Turn on parser debugging output
2. Begin 3. gitdir: Git repository directory path 4. git_developer_dir: Git developer directory path 5. svn_master_dir: svn master directory path 6. svn_developer_dir: developer directory path 7. svnrepo: svn repositories path 8. Print ************ Comprehensive Report of on SVN to Git Migration ************ 9. Print ************Authors ************ 10. Use the cd command followed by periods to return to the folder you were in before you entered the gitdir directory 11. Print the names of total Authors in git 12. Use the cd command followed by periods to return to the folder you were in before you entered the svn_master_dir directory 13. Print the name of total Authors in SVN 14. Use the cd command followed by periods to return to the folder you were in before you entered the gitdir directory 15. Print the name of Total Authors in Git from Author git repo and Sort all unique names 16. Use the cd command followed by periods to return to the folder you were in before you entered the svn_master_dir directory 17. Print Author names from svn log to git repository “r” and sort unique names 18. Print ************** First and Last commits in Develop Branch ************ 19. Use the cd command followed by periods to return to the folder you were in before you entered the gitdir directory 20. Print first commit in git 21. Print first commit date in git 22. Print last commit in git 23. Print last commit date in git 24. Use the cd command followed by periods to return to the folder you were in before you entered the svn_master_dir directory 25. Print First commit date in SVN 26. Delete branches 27. Print last commit in SVN 28. Delete remote branches 29. Print last commit date in SVN 30. Show Last changed date
A Focus on Addition and Subtraction Bringing Mathematics Education Research to the Classroom 1st Edition Caroline B. Ebby - Get instant access to the full ebook with detailed content
[FREE PDF sample] (Ebook) Medical Student Survival Skills: History Taking and Communication Skills by Philip Jevon; Manoj Samaranayake; Steve Odogwu ISBN 9781118862681, 1118862686 ebooks