[PATCH STABLE V2] keyword: avoid traceback when kwdemo is run outside a repo

Augie Fackler raf at durin42.com
Wed Jul 27 19:37:47 EDT 2016


> On Jul 27, 2016, at 5:44 PM, Augie Fackler <raf at durin42.com> wrote:
> 
>> diff --git a/hgext/keyword.py b/hgext/keyword.py
>> --- a/hgext/keyword.py
>> +++ b/hgext/keyword.py
>> @@ -412,7 +412,11 @@ def demo(ui, repo, *args, **opts):
>>    fn = 'demo.txt'
>>    tmpdir = tempfile.mkdtemp('', 'kwdemo.')
>>    ui.note(_('creating temporary repository at %s\n') % tmpdir)
>> -    repo = localrepo.localrepository(repo.baseui, tmpdir, True)
>> +    if repo == None:

I fixed this in flight. check-code sends its regards.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20160727/070ad863/attachment.sig>


More information about the Mercurial-devel mailing list