Make hg-fast-export work on Windows

* use sys.stdout.write instead of print to avoid end-of-line issues
* use os.devnull instead of hard-coding /dev/null
This commit is contained in:
Daniel Harding
2012-03-21 23:16:11 +00:00
parent d311f7fbc7
commit 4ce8835d11
2 changed files with 4 additions and 4 deletions

View File

@@ -23,9 +23,9 @@ def gitmode(flags):
return 'l' in flags and '120000' or 'x' in flags and '100755' or '100644'
def wr(msg=''):
if msg == None:
msg = ''
print msg
if msg:
sys.stdout.write(msg)
sys.stdout.write('\n')
#map(lambda x: sys.stderr.write('\t[%s]\n' % x),msg.split('\n'))
def checkpoint(count):