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_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 {} {}"


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](


[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""")

Kemahiran: Python, Git

Lihat lagi: 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

Tentang Majikan:
( 0 ulasan ) Auckland, New Zealand

ID Projek: #26470451

5 pekerja bebas membida secara purata $535 untuk pekerjaan ini


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. Lagi

$500 NZD dalam 7 hari
(42 Ulasan)

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 Lagi

$500 NZD dalam 7 hari
(4 Ulasan)

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 Lagi

$750 NZD dalam 2 hari
(2 Ulasan)

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 Lagi

$250 NZD dalam sehari
(2 Ulasan)

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 Lagi

$677 NZD dalam 15 hari
(0 Ulasan)