Changeset f598e68cb011…
Parent 7081aeb0452f…
by
Changes to one file · Browse files at f598e68cb011 Showing diff from parent 7081aeb0452f Diff from another changeset...
@@ -375,11 +375,15 @@
:param patch_name: Name of patch-branch
:retv: Full patch message. If you extract the first line
- you will get the patch title.
+ you will get the patch title. If the repo does not contain
+ message or patch, the function returns None
"""
opts = {}
mgr = self.pbranch.patchmanager(self.repo.ui, self.repo, opts)
- return mgr.patchdesc(patch_name)
+ try:
+ return mgr.patchdesc(patch_name)
+ except:
+ return None
def peditmessage(self, patch_name):
"""
|
Loading...