From: Junio C Hamano Date: Thu, 25 Jul 2019 21:27:15 +0000 (-0700) Subject: Merge branch 'sw/git-p4-unshelve-branched-files' into maint X-Git-Tag: v2.23.0-rc0~6^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fe3ec21fb03e7d02d00fc845e7a7d3e692bb67a2?ds=inline;hp=-c Merge branch 'sw/git-p4-unshelve-branched-files' into maint "git p4" update. * sw/git-p4-unshelve-branched-files: git-p4: allow unshelving of branched files --- fe3ec21fb03e7d02d00fc845e7a7d3e692bb67a2 diff --combined git-p4.py index 0b5bfcbc5e,81a525858b..c71a6832e2 --- a/git-p4.py +++ b/git-p4.py @@@ -737,7 -737,7 +737,7 @@@ def extractLogMessageFromGitCommit(comm ## fixme: title is first line of commit, not 1st paragraph. foundTitle = False - for log in read_pipe_lines("git cat-file commit %s" % commit): + for log in read_pipe_lines(["git", "cat-file", "commit", commit]): if not foundTitle: if len(log) == 1: foundTitle = True @@@ -1309,7 -1309,7 +1309,7 @@@ class GitLFS(LargeFileSystem) class Command: delete_actions = ( "delete", "move/delete", "purge" ) - add_actions = ( "add", "move/add" ) + add_actions = ( "add", "branch", "move/add" ) def __init__(self): self.usage = "usage: %prog [options]" diff --combined t/t9832-unshelve.sh index 1286a5b824,cde9f86cd6..e9276c48f4 --- a/t/t9832-unshelve.sh +++ b/t/t9832-unshelve.sh @@@ -22,7 -22,10 +22,10 @@@ test_expect_success 'init depot' : >file_to_move && p4 add file_to_delete && p4 add file_to_move && - p4 submit -d "add files to delete" + p4 submit -d "add files to delete" && + echo file_to_integrate >file_to_integrate && + p4 add file_to_integrate && + p4 submit -d "add file to integrate" ) ' @@@ -40,6 -43,7 +43,7 @@@ test_expect_success 'create shelved cha p4 delete file_to_delete && p4 edit file_to_move && p4 move file_to_move moved_file && + p4 integrate file_to_integrate integrated_file && p4 opened && p4 shelve -i <