Skip to content
This repository has been archived by the owner on Jan 22, 2018. It is now read-only.

Fix p4 submit losing changelists. #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions git-p4
Original file line number Diff line number Diff line change
Expand Up @@ -1091,11 +1091,6 @@ class P4Submit(Command):
diff = "\n".join( read_pipe_lines("git diff \"%s^\" \"%s\"" % (id, id)) )
template = self.prepareSubmitTemplate()
changelist = self.submit(template, logMessage, diff)

# Add note
if changelist > 0:
cmd = 'git notes --ref=git-p4 add -m "[depot-paths = \\"%s\\": change = %s]" %s' % (self.depotPath, changelist, id)
system(cmd)

def applyCommits(self):
while len(self.commits) > 0 and self.abort == False:
Expand Down Expand Up @@ -1162,8 +1157,6 @@ class P4Submit(Command):
self.applyCommits()

if self.abort == False:
system("git update-ref %s%s %s" % (getRefsPrefix(self.importIntoRemotes), self.master, self.master))

if len(self.commits) == 0:
print "All changes applied!"
chdir(self.oldWorkingDirectory)
Expand Down