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

upgrade extensions to 2.6.8

Changeset f0fe708a7d75

Parent 70e309ffda36

by Profile picture of User 12Benjamin Pollack <benjamin@fogcreek.com>

Changes to 3 files · Browse files at f0fe708a7d75 Showing diff from parent 70e309ffda36 Diff from another changeset...

 
418
419
420
421
422
 
 
 
 
 
423
424
425
426
427
428
429
 
 
430
431
432
433
 
434
435
436
 
418
419
420
 
 
421
422
423
424
425
426
 
 
 
 
 
 
427
428
429
430
431
 
432
433
434
435
@@ -418,19 +418,18 @@
  repo.__class__ = bfiles_repo     def checkrequireskbfiles(ui, repo, **kwargs): - if 'kbfiles' not in repo.requirements and bfutil.any_('.kbf/' in f[0] \ - for f in repo.store.datafiles()): + if 'kbfiles' not in repo.requirements: + if bfutil.any_('.kbf/' in f[0] for f in repo.store.datafiles()): + # work around bug in mercurial 1.9 whereby requirements is a list + # on newly-cloned repos + repo.requirements = set(repo.requirements)   - # work around bug in mercurial 1.9 whereby requirements is a list - # on newly-cloned repos - repo.requirements = set(repo.requirements) - - repo.requirements |= set(['kbfiles']) - repo._writerequirements() + repo.requirements |= set(['kbfiles']) + repo._writerequirements()     checkrequireskbfiles(ui, repo)   - ui.setconfig('hooks', 'incoming.kbfiles', checkrequireskbfiles) + ui.setconfig('hooks', 'changegroup.kbfiles', checkrequireskbfiles)   ui.setconfig('hooks', 'commit.kbfiles', checkrequireskbfiles)    # Add works by going through the files that the user wanted to add
Change 1 of 1 Show Entire File kiln.py Stacked
 
582
583
584
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
585
586
587
 
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
@@ -582,6 +582,21 @@
  if issubclass(repo.__class__, httprepo.httprepository):   _upgradecheck(ui, repo)   +def extsetup(ui): + try: + g = extensions.find('gestalt') + extensions.wrapcommand(g.cmdtable, 'overview', guess_kilnpath) + extensions.wrapcommand(g.cmdtable, 'advice', guess_kilnpath) + extensions.wrapcommand(g.cmdtable, 'next', guess_kilnpath) + except KeyError: + pass + + try: + f = extensions.find('fetch') + extensions.wrapcommand(f.cmdtable, 'fetch', guess_kilnpath) + except KeyError: + pass +  cmdtable = {   'kiln':   (kiln,
Change 1 of 1 Show Entire File kilnauth.py Stacked
 
46
47
48
 
 
 
 
 
49
50
51
 
46
47
48
49
50
51
52
53
54
55
56
@@ -46,6 +46,11 @@
  # Python 2.4   import md5   +try: + WindowsError +except NameError: + WindowsError = None +  from mercurial.i18n import _  import mercurial.url