@@ -152,7 +152,7 @@ def getgitenv(user, date):
152152
153153if not hgvers .has_key ("0" ):
154154 print 'creating repository'
155- os .system ('git- init-db' )
155+ os .system ('git init-db' )
156156
157157# loop through every hg changeset
158158for cset in range (int (tip ) + 1 ):
@@ -194,10 +194,10 @@ def getgitenv(user, date):
194194 if cset != 0 :
195195 if hgbranch [str (cset )] == "branch-" + str (cset ):
196196 print 'creating new branch' , hgbranch [str (cset )]
197- os .system ('git- checkout -b %s %s' % (hgbranch [str (cset )], hgvers [parent ]))
197+ os .system ('git checkout -b %s %s' % (hgbranch [str (cset )], hgvers [parent ]))
198198 else :
199199 print 'checking out branch' , hgbranch [str (cset )]
200- os .system ('git- checkout %s' % hgbranch [str (cset )])
200+ os .system ('git checkout %s' % hgbranch [str (cset )])
201201
202202 # merge
203203 if mparent :
@@ -206,7 +206,7 @@ def getgitenv(user, date):
206206 else :
207207 otherbranch = hgbranch [parent ]
208208 print 'merging' , otherbranch , 'into' , hgbranch [str (cset )]
209- os .system (getgitenv (user , date ) + 'git- merge --no-commit -s ours "" %s %s' % (hgbranch [str (cset )], otherbranch ))
209+ os .system (getgitenv (user , date ) + 'git merge --no-commit -s ours "" %s %s' % (hgbranch [str (cset )], otherbranch ))
210210
211211 # remove everything except .git and .hg directories
212212 os .system ('find . \( -path "./.hg" -o -path "./.git" \) -prune -o ! -name "." -print | xargs rm -rf' )
@@ -215,30 +215,30 @@ def getgitenv(user, date):
215215 os .system ('hg update -C %d' % cset )
216216
217217 # add new files
218- os .system ('git- ls-files -x .hg --others | git- update-index --add --stdin' )
218+ os .system ('git ls-files -x .hg --others | git update-index --add --stdin' )
219219 # delete removed files
220- os .system ('git- ls-files -x .hg --deleted | git- update-index --remove --stdin' )
220+ os .system ('git ls-files -x .hg --deleted | git update-index --remove --stdin' )
221221
222222 # commit
223223 os .system (getgitenv (user , date ) + 'git commit --allow-empty -a -F %s' % filecomment )
224224 os .unlink (filecomment )
225225
226226 # tag
227227 if tag and tag != 'tip' :
228- os .system (getgitenv (user , date ) + 'git- tag %s' % tag )
228+ os .system (getgitenv (user , date ) + 'git tag %s' % tag )
229229
230230 # delete branch if not used anymore...
231231 if mparent and len (hgchildren [str (cset )]):
232232 print "Deleting unused branch:" , otherbranch
233- os .system ('git- branch -d %s' % otherbranch )
233+ os .system ('git branch -d %s' % otherbranch )
234234
235235 # retrieve and record the version
236- vvv = os .popen ('git- show --quiet --pretty=format:%H' ).read ()
236+ vvv = os .popen ('git show --quiet --pretty=format:%H' ).read ()
237237 print 'record' , cset , '->' , vvv
238238 hgvers [str (cset )] = vvv
239239
240240if hgnewcsets >= opt_nrepack and opt_nrepack != - 1 :
241- os .system ('git- repack -a -d' )
241+ os .system ('git repack -a -d' )
242242
243243# write the state for incrementals
244244if state :
0 commit comments