##// END OF EJS Templates
Let hg paths work outside of repositories
mpm@selenic.com -
r915:24a31f46 default
parent child Browse files
Show More
@@ -855,8 +855,13 b' def parents(ui, repo, rev=None):'
855 if n != hg.nullid:
855 if n != hg.nullid:
856 show_changeset(ui, repo, changenode=n)
856 show_changeset(ui, repo, changenode=n)
857
857
858 def paths(ui, repo, search = None):
858 def paths(ui, search = None):
859 """show path or list of available paths"""
859 """show path or list of available paths"""
860 try:
861 repo = hg.repository(ui=ui)
862 except:
863 pass
864
860 if search:
865 if search:
861 for name, path in ui.configitems("paths"):
866 for name, path in ui.configitems("paths"):
862 if name == search:
867 if name == search:
@@ -1373,7 +1378,7 b" globalopts = [('v', 'verbose', None, 've"
1373 ('', 'time', None, 'time how long the command takes'),
1378 ('', 'time', None, 'time how long the command takes'),
1374 ]
1379 ]
1375
1380
1376 norepo = "clone init version help debugindex debugindexdot"
1381 norepo = "clone init version help debugindex debugindexdot paths"
1377
1382
1378 def find(cmd):
1383 def find(cmd):
1379 for e in table.keys():
1384 for e in table.keys():
General Comments 0
You need to be logged in to leave comments. Login now