Fix Manifest commit logic for cvs and svn. Thanks to Rafael Martins
authorZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 18:49:58 +0000 (18:49 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 29 Jan 2010 18:49:58 +0000 (18:49 -0000)
<rafael@rafaelmartins.com>. (trunk r15205)

svn path=/main/branches/2.1.7/; revision=15258

bin/repoman

index fd3c519a346af31fcf277e8f354e1be6158c3941..442fb83d80defd4e8f49a08c14e8f54d4551ed31 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: