Fix Manifest commit logic for cvs and svn. Thanks to Rafael Martins
authorZac Medico <zmedico@gentoo.org>
Tue, 19 Jan 2010 00:00:41 +0000 (00:00 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 19 Jan 2010 00:00:41 +0000 (00:00 -0000)
<rafael@rafaelmartins.com>.

svn path=/main/trunk/; revision=15205

bin/repoman

index 0c8335f6de5bf42978726b5c79926d73a73c9360..5f46c15fb776d285ba62fd4e20977cd0901db50f 100755 (executable)
@@ -2485,12 +2485,12 @@ else:
                commit_cmd.extend(vcs_global_opts)
                commit_cmd.append("commit")
                commit_cmd.extend(vcs_local_opts)
-               if vcs in ('git', 'bzr'):
-                       commit_cmd.extend(["-F", commitmessagefile])
-                       commit_cmd.extend(f.lstrip("./") for f in myfiles)
-               elif vcs == "hg":
+               if vcs == "hg":
                        commit_cmd.extend(["--logfile", commitmessagefile])
                        commit_cmd.extend(myfiles)
+               else:
+                       commit_cmd.extend(["-F", commitmessagefile])
+                       commit_cmd.extend(f.lstrip("./") for f in myfiles)
 
                try:
                        if options.pretend: