##// END OF EJS Templates
urlutil: provide some information about "bad url" when processing `pushurl`...
marmoute -
r48050:9cc9b4a2 default
parent child Browse files
Show More
@@ -742,7 +742,9 b' def pushurlpathoption(ui, path, value):'
742 742 u = url(value)
743 743 # Actually require a URL.
744 744 if not u.scheme:
745 ui.warn(_(b'(paths.%s:pushurl not a URL; ignoring)\n') % path.name)
745 msg = _(b'(paths.%s:pushurl not a URL; ignoring: "%s")\n')
746 msg %= (path.name, value)
747 ui.warn(msg)
746 748 return None
747 749
748 750 # Don't support the #foo syntax in the push URL to declare branch to
@@ -175,7 +175,7 b" unknown sub-options aren't displayed"
175 175 > EOF
176 176
177 177 $ hg paths
178 (paths.default:pushurl not a URL; ignoring)
178 (paths.default:pushurl not a URL; ignoring: "/not/a/url")
179 179 default = /path/to/nothing
180 180
181 181 #fragment is not allowed in :pushurl
General Comments 0
You need to be logged in to leave comments. Login now