# HG changeset patch # User Dirkjan Ochtman # Date 1275933812 -7200 # Node ID 81d8da31c542ff956405ca056e571d10a4bc498f # Parent 6d948926515b7ae3f4ee03cd7acb0fab84b8f74e move working dir/dirstate methods from localrepo to workingctx [ original upstream message ] diff -r 6d948926515b -r 81d8da31c542 hgkw/keyword.py --- a/hgkw/keyword.py Sun Jun 06 20:19:24 2010 +0100 +++ b/hgkw/keyword.py Mon Jun 07 20:03:32 2010 +0200 @@ -356,7 +356,7 @@ demoitems('keywordmaps', kwmaps.iteritems()) keywords = '$' + '$\n$'.join(sorted(kwmaps.keys())) + '$\n' repo.wopener(fn, 'w').write(keywords) - repo.add([fn]) + repo[None].add([fn]) ui.note(_('\nkeywords written to %s:\n') % fn) ui.note(keywords) repo.dirstate.setbranch('demobranch')