changeset 7733:30e95eafc1d0

warn if --repository provided for norepo commands
author Matt Mackall <mpm@selenic.com>
date Wed, 28 Jan 2009 14:27:44 -0600
parents 3793802ea41b
children 9f73bddb9d0b
files mercurial/dispatch.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dispatch.py	Sun Jan 25 21:20:13 2009 +0100
+++ b/mercurial/dispatch.py	Wed Jan 28 14:27:44 2009 -0600
@@ -354,6 +354,8 @@
                                       " here (.hg not found)"))
                 raise
         args.insert(0, repo)
+    elif rpath:
+        ui.warn("warning: --repository ignored\n")
 
     d = lambda: util.checksignature(func)(ui, *args, **cmdoptions)