Show More
@@ -873,6 +873,14 b' class queue(object):' | |||
|
873 | 873 | raise util.Abort(_('"%s" cannot be used in the name of a patch') |
|
874 | 874 | % c) |
|
875 | 875 | |
|
876 | def checkpatchname(self, name, force=False): | |
|
877 | self.check_reserved_name(name) | |
|
878 | if not force and os.path.exists(self.join(name)): | |
|
879 | if os.path.isdir(self.join(name)): | |
|
880 | raise util.Abort(_('"%s" already exists as a directory') | |
|
881 | % name) | |
|
882 | else: | |
|
883 | raise util.Abort(_('patch "%s" already exists') % name) | |
|
876 | 884 | |
|
877 | 885 | def new(self, repo, patchfn, *pats, **opts): |
|
878 | 886 | """options: |
General Comments 0
You need to be logged in to leave comments.
Login now