No need for archivemode as variable kwmap-templates
authorChristian Ebert <blacktrash@gmx.net>
Fri, 08 Jun 2007 16:05:44 +0200
branchkwmap-templates
changeset 161 aac10ec0a8cd
parent 160 e45d804d28dd
child 162 017dbf710056
No need for archivemode as variable
hgkw/keyword.py
--- a/hgkw/keyword.py	Fri Apr 20 14:41:35 2007 +0200
+++ b/hgkw/keyword.py	Fri Jun 08 16:05:44 2007 +0200
@@ -221,8 +221,6 @@
     if not repo.local():
         return
 
-    archivemode = (getcmd(repo.ui) == 'archive')
-
     inc, exc, archive, noarchive = [], ['.hg*'], [], ['.hg*']
     for pat, opt in repo.ui.configitems('keyword'):
         if opt == 'archive':
@@ -233,7 +231,7 @@
             exc.append(pat)
         else:
             inc.append(pat)
-    if archivemode:
+    if getcmd(repo.ui) == 'archive':
         inc, exc = archive, noarchive
     if not inc:
         return