OpenSource » Forked Projects » Kiln-Extensions
Clone URL:  
Pushed to one repository · View In Graph Contained in tip

Handle 'norepo' property in kilnauth for older versions of Mercurial

Changeset b5877437d2f5

Parent 933576edff82

by Lou Manglass

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

Change 1 of 1 Show Entire File kilnauth.py Stacked
 
213
214
215
 
 
 
 
 
 
 
 
216
217
218
 
219
220
221
 
213
214
215
216
217
218
219
220
221
222
223
224
225
 
226
227
228
229
@@ -213,9 +213,17 @@
  return urlopener   mercurial.url.opener = opener   +if hasattr(commands, 'norepo'): + # Pre-Mercurial 3.8 + opt_no_repo = {} + commands.norepo += ' logout' +else: + # Mercurial 3.8+ + opt_no_repo = {'norepo': True} +  cmdtable = {}  command = cmdutil.command(cmdtable) -@command('logout', [], _('[domain]'), norepo=True) +@command('logout', [], _('[domain]'), **opt_no_repo)  def logout(ui, domain=None, **opts):   """log out of http repositories