Đã Đóng

Convert Git commands

I have a python script which currently runs on git but it needs to be converted to running with TFVC sometimes known as TFS version control

The script needs to run in the same way as it does for TFVC as it does for Git and needs to work for shelvesets and changesets

These are the commands that need to be translated:

# COMMAND TEMPLATES

COMMAND_REF_LIST = u"git for-each-ref"

COMMAND_COMMIT_SHA_LIST = u"git log --reverse --pretty=format:'%H' {}..{}"

COMMAND_TAG_COMMIT_SHA_LIST = u"git log --reverse --pretty=format:'%H' {}"

COMMAND_REMOTES_COMMIT_SHA_LIST = u"git log --reverse --pretty=format:'%H' --remotes='*/{}'"

COMMAND_HEADS_COMMIT_SHA_LIST = u"git log --reverse --pretty=format:'%H' --branches='*{}'"

COMMAND_COMMIT_LIST = u"git show --reverse --first-parent --raw --numstat --abbrev=40 --full-index -p -M --pretty=format:'Commit:\t%H%nDate:\t%ai%nTree:\t%T%nParents:\t%P%nAuthor:\t%an\t%ae\t%ai%nCommitter:\t%cn\t%ce\t%ci%nMessage:\t%s%n' {}"

if is_windows:

COMMAND_COMMIT_LIST = [login to view URL]('\'', '')

COMMAND_COMMIT_LIST = [login to view URL]('\t', '%x09')

COMMAND_TAGGER = u"git for-each-ref --format='%(taggername)\t%(taggeremail)' refs/tags/{}"

COMMAND_COMMIT_FILE_BLAME = u"git blame {}^ -L {},{} -- {}"

COMMAND_COMMIT_FILE_BLAME_FIX = u"git log --pretty=%H -1 {}^ -- {}"

COMMAND_COMMIT_BRANCH = u"git branch --contains {}"

COMMAND_COMMIT_REMOTES = u"git branch -r --contains {}"

COMMAND_FILE_TREE = u"git diff --name-only {} {}"

# PATTERNS

RE_OCTAL_BYTE = [login to view URL](br"""\\\\([0-9]{3})""")

RE_COMMIT_HEADER = [login to view URL](

br"""^Commit:\t(?P<sha>[0-9A-Fa-f]+)\nDate:\t(?P<date>.*)\nTree:\t(?P<tree>[0-9A-Fa-f]+)\nParents:\t(?P<parents>.*)\nAuthor:\t(?P<author>.*)\nCommitter:\t(?P<committer>.*)\nMessage:\t(?P<message>.*)?(?:\n\n|$)?(?P<file_stats>(?:^:.+\n)+)?(?P<file_numstats>(?:.+\t.*\t.*\n)+)?(?:\n|\n\n|$)?(?P<patch>(?:diff[ ]--git(?:.+\n)+)+)?(?:\n\n|$)?""",

[login to view URL] | [login to view URL])

RE_COMMIT_DIFF = [login to view URL](

br"""^diff[ ]--git[ ](?P<a_path_fallback>"?a/.+?"?)[ ](?P<b_path_fallback>"?b/.+?"?)\n(?:^old[ ]mode[ ](?P<old_mode>\d+)\n^new[ ]mode[ ](?P<new_mode>\d+)(?:\n|$))?(?:^similarity[ ]index[ ]\d+%\n^rename[ ]from[ ](?P<rename_from>.*)\n^rename[ ]to[ ](?P<rename_to>.*)(?:\n|$))?(?:^new[ ]file[ ]mode[ ](?P<new_file_mode>.+)(?:\n|$))?(?:^deleted[ ]file[ ]mode[ ](?P<deleted_file_mode>.+)(?:\n|$))?(?:^index[ ](?P<a_blob_id>[0-9A-Fa-f]+)\.\.(?P<b_blob_id>[0-9A-Fa-f]+)[ ]?(?P<b_mode>.+)?(?:\n|$))?(?:^---[ ](?P<a_path>[^\t\n\r\f\v]*)[\t\r\f\v]*(?:\n|$))?(?:^\+\+\+[ ](?P<b_path>[^\t\n\r\f\v]*)[\t\r\f\v]*(?:\n|$))?""",

[login to view URL] | [login to view URL])

RE_COMMIT_BRANCH = [login to view URL](

br"""(refs/(remotes/)?origin/)?(\*\s)?(?P<branch>.*)""",

[login to view URL] | [login to view URL])

RE_TAGGER = [login to view URL](br"""(?P<username>.*)\t(?P<email>.*)""")

RE_SHA = [login to view URL](br"""\b[0-9a-f]{5,40}\b""")

Kĩ năng: Python, Git

Xem nhiều hơn: git-svn tutorial, git svn clone local repository, migrate mercurial to git with history, migrate svn to git with history and branches, svn to git migration best practices, git svn clone not working, migrate large svn repository to git, migrate svn to bitbucket with history and branches, git svn clone, svn to git migration ppt, convert local svn to git, migrate svn to git without history, convert email username twitter, i have a list of contact information of about 10000 people the data is in physical form (hard copy) have to manually enter in to, http www mysearch com web mgct ds&o apn11905&q how can i give english level 1 examfor freelancer, logo needed. i need 3 logos. 1 DESIGN FOR ALL 3., logo needed. i need 3 logos. 1 DESIGN FOR ALL 3. 1. cargo2lagos.com 2. cargo2ghana.com 3. cargo2senegambia.com, I need patterns or shapes cut from wood, hard plastic or metal. Prefer to work with people from US, Canada, Mexico to limit inte, For each subset of 5 statements I have weighted them 1-10, scripting git commands

Về Bên Thuê:
( 0 nhận xét ) Auckland, New Zealand

ID dự án: #26470451

5 freelancer đang chào giá trung bình $535 cho công việc này

schoudhary1553

Hello, I can help you to Convert Git commands I have gone through your job posting and become very much interested to work with you. I am an expert in this field. I have already completed several projects like this. Thêm

$500 NZD trong 7 ngày
(42 Nhận xét)
6.1
alexsamdev

Hello, sir I am a full-time full-service web developer. I have read your project carefully and got your requirements. I am a senior web developer who has 6 years of experience in python. I've developed over 50+ websi Thêm

$500 NZD trong 7 ngày
(4 Nhận xét)
4.4
anaya8777

Hi, I CAN START WORK ON IT IMMEDIATELY. AS i check you details that you need to Convert Git commands, i will do it for you I can perform both front-end and back-end responsibilities. I will do this job as per your exp Thêm

$750 NZD trong 2 ngày
(2 Nhận xét)
3.0
giteshgoyal

Hi, I'm a Cpp, JavaScript, Python expert with 3 years of industrial experience. I recently done a projects in JavaScript, Python and can help you with this issue of TFVC. Since I'm new to freelancer I don't have any r Thêm

$250 NZD trong 1 ngày
(2 Nhận xét)
2.1
DevelopmentFreak

Hi, I got acquainted with your requirements. I understand the essence perfectly since. I will be glad to work with you. I propose to discuss in more detail of your project, I look forward to our cooperation. I have Thêm

$677 NZD trong 15 ngày
(0 Nhận xét)
0.0