As I use "joe" to edit ebuilds and all files, I usually need to manually run "rm *~" before committing, could this be done automatically by "repoman commit"? Thanks a lot Reproducible: Always
joe doesn't have an option not to write backup files?
Yes, -nobackups option, but I usually rely on its backup files (as maybe I make some wrong change) and, then, would prefer to get backups removed only at last stage (at committing time)
doesn't that defeat the purpose of the underlying VCS repoman is committing to?
I don't think so
I think it does. Nevertheless, repoman should NEVER remove files on its own. It might ignore files, though. Still I think you're just using your editor + VCS wrong here. If you believe the VCS isn't providing what you're looking for, let your editor write its backup files to somewhere else instead, or wrap your repoman inside a script that does a rm *~ before actually calling repoman.
I don't see why repoman commit cannot be tweaked to simply not commit files that are not allowed to be committed
Ideally, repoman would respect whatever filter the current VCS uses. If the VCS provides a way to get of list of such files, then your request is relatively easy to implement. Otherwise, it's not easy.
Oh, I thought that, as it's now able to die telling you ~ files are not allowed, it would also be able to drop them... but I was wrong :(
What does it look like when it dies? Is it a cvs error or what? If a given vcs doesn't provide a way to explicitly list the ignored files, we'll have to duplicate whatever algorithm the vcs uses. For example, the cvsignore algorithm seems to be documented here: http://evscm.org/manual/html/cvsignore.html
I thought repoman checks manually in the CVS/Entries files, so doesn't do ignoring when it checks files it sees. With SVN it uses -I to also list ignored files, I think we do the same for all other VCSs.
Well, I never tried to run "repoman commit" as "repoman full" dies already with: RepoMan scours the neighborhood... file.name 1 /home/pacho/gentoo-x86/app-portage/gpytage/metadata.xml~: char '~' Note: use --include-dev (-d) to check dependencies for 'dev' profiles Please fix these important QA issues first. RepoMan sez: "Make your QA payment on time and you'll never see the likes of me."
Maybe we can just use the regular expression from the file.name check for files to ignore. We can simply ignore those files if they haven't been explicitly added to the vcs.
(In reply to comment #12) > Maybe we can just use the regular expression from the file.name check for > files to ignore. We can simply ignore those files if they haven't been > explicitly added to the vcs. This is implemented by the following 2 commits: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=2dac56fa282645031eb29860abc403e983a04b2d http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=237427dbf5eadf1e7b7bf2962b2ccbb352e527ab
This is in 2.2.0_alpha91, but I'll leave this bug open until it's in an unmasked release.
This is fixed in 2.1.10.50.
*** Bug 143171 has been marked as a duplicate of this bug. ***