@@ -501,7 +501,7 @@ def ignores():
501
501
with open (Hg .ignore_file , 'w' ) as f :
502
502
f .write ("syntax: glob\n " + '\n ' .join (ignores )+ '\n ' )
503
503
except IOError :
504
- error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd , Hg .ignore_file ), 1 )
504
+ error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd () , Hg .ignore_file ), 1 )
505
505
506
506
def ignore (dest ):
507
507
Hg .hgrc ()
@@ -516,7 +516,7 @@ def ignore(dest):
516
516
with open (Hg .ignore_file , 'a' ) as f :
517
517
f .write (dest + '\n ' )
518
518
except IOError :
519
- error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd , Hg .ignore_file ), 1 )
519
+ error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd () , Hg .ignore_file ), 1 )
520
520
521
521
def unignore (dest ):
522
522
Hg .ignore_file = os .path .join ('.hg' , 'hgignore' )
@@ -532,7 +532,7 @@ def unignore(dest):
532
532
with open (Hg .ignore_file , 'w' ) as f :
533
533
f .write ('\n ' .join (lines ) + '\n ' )
534
534
except IOError :
535
- error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd , Hg .ignore_file ), 1 )
535
+ error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd () , Hg .ignore_file ), 1 )
536
536
537
537
# pylint: disable=no-self-argument, no-method-argument, no-member, no-self-use, unused-argument
538
538
@scm ('git' )
@@ -744,7 +744,7 @@ def ignores():
744
744
with open (Git .ignore_file , 'w' ) as f :
745
745
f .write ('\n ' .join (ignores )+ '\n ' )
746
746
except IOError :
747
- error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd , Git .ignore_file ), 1 )
747
+ error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd () , Git .ignore_file ), 1 )
748
748
749
749
def ignore (dest ):
750
750
try :
@@ -758,7 +758,7 @@ def ignore(dest):
758
758
with open (Git .ignore_file , 'a' ) as f :
759
759
f .write (dest .replace ("\\ " , "/" ) + '\n ' )
760
760
except IOError :
761
- error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd , Git .ignore_file ), 1 )
761
+ error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd () , Git .ignore_file ), 1 )
762
762
def unignore (dest ):
763
763
try :
764
764
with open (Git .ignore_file ) as f :
@@ -772,7 +772,7 @@ def unignore(dest):
772
772
with open (Git .ignore_file , 'w' ) as f :
773
773
f .write ('\n ' .join (lines ) + '\n ' )
774
774
except IOError :
775
- error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd , Git .ignore_file ), 1 )
775
+ error ("Unable to write ignore file in \" %s\" " % os .path .join (os .getcwd () , Git .ignore_file ), 1 )
776
776
777
777
# Repository object
778
778
class Repo (object ):
0 commit comments