Kiln » Kiln Extensions
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip

Update kilnauth extension to support Mercurial 3.8

Changeset 933576edff82

Parent e12087422420

by Profile picture of Lou ManglassLou Manglass

Changes to one file · Browse files at 933576edff82 Showing diff from parent e12087422420 Diff from another changeset...

Change 1 of 3 Show Entire File kilnauth.py Stacked
 
54
55
56
 
57
58
59
 
212
213
214
215
 
 
 
 
216
217
218
 
226
227
228
229
230
231
232
233
234
235
 
54
55
56
57
58
59
60
 
213
214
215
 
216
217
218
219
220
221
222
 
230
231
232
 
 
 
 
 
 
 
@@ -54,6 +54,7 @@
 from mercurial.i18n import _  import mercurial.url  from mercurial import commands +from mercurial import cmdutil    current_user = None   @@ -212,7 +213,10 @@
  return urlopener   mercurial.url.opener = opener   -def logout(ui, domain=None): +cmdtable = {} +command = cmdutil.command(cmdtable) +@command('logout', [], _('[domain]'), norepo=True) +def logout(ui, domain=None, **opts):   """log out of http repositories     Clears the cookies stored for HTTP repositories. If [domain] is @@ -226,10 +230,3 @@
  cj.save()   except KeyError:   ui.write("Not logged in to '%s'\n" % (domain,)) - -commands.norepo += ' logout' - -cmdtable = { - 'logout': (logout, [], '[domain]') -} -