73 """ |
73 """ |
74 msg = "" |
74 msg = "" |
75 if eventDict["action"] == pysvn.wc_notify_action.update_completed: |
75 if eventDict["action"] == pysvn.wc_notify_action.update_completed: |
76 msg = self.trUtf8("Revision {0}.\n").format(eventDict["revision"].number) |
76 msg = self.trUtf8("Revision {0}.\n").format(eventDict["revision"].number) |
77 elif eventDict["path"] != "" and \ |
77 elif eventDict["path"] != "" and \ |
|
78 eventDict["action"] in svnNotifyActionMap and \ |
78 svnNotifyActionMap[eventDict["action"]] is not None: |
79 svnNotifyActionMap[eventDict["action"]] is not None: |
79 mime = eventDict["mime_type"] == "application/octet-stream" and \ |
80 mime = eventDict["mime_type"] == "application/octet-stream" and \ |
80 self.trUtf8(" (binary)") or "" |
81 self.trUtf8(" (binary)") or "" |
81 msg = self.trUtf8("{0} {1}{2}\n")\ |
82 msg = self.trUtf8("{0} {1}{2}\n")\ |
82 .format(self.trUtf8(svnNotifyActionMap[eventDict["action"]]), |
83 .format(self.trUtf8(svnNotifyActionMap[eventDict["action"]]), |