# HG changeset patch # User Greg Ward # Date 1238547908 14400 # Node ID 18c1e7ac00125f9b0163e55339aff805f325a018 # Parent 7e3d7dbe33861f5bcd08597085f61cca13a15c8f Fix so "hg -R fastimport ..." works (write files under repo.root, not current dir). diff -r 7e3d7dbe3386 -r 18c1e7ac0012 fastimport/hgimport.py --- a/fastimport/hgimport.py Tue Mar 31 10:10:04 2009 -0400 +++ b/fastimport/hgimport.py Tue Mar 31 21:05:08 2009 -0400 @@ -141,10 +141,11 @@ #print "============================" + filecmd.path # FIXME: handle mode self.files.add(filecmd.path) - self._make_container(filecmd.path) + fullpath = os.path.join(self.repo.root, filecmd.path) + self._make_container(fullpath) #print "made dirs, writing file" - f = open(filecmd.path, "w") f.write(filecmd.data) + f = open(fullpath, "w") f.close() #print self.repo.add([filecmd.path]) #print "Done:", filecmd.path