Index: ChangeLog
from Akim Demaille <akim(a)epita.fr>
Introduce --no-ignore.
* prcs2svn/prcs2svn.py (Informations.translate_ignores): New.
(Main.parse_opt): Handle --no-ignore.
(Prcs2svn.ignore_set): Take
Informations.translate_ignores into account.
Index: prcs2svn/prcs2svn.py
--- prcs2svn/prcs2svn.py (revision 109)
+++ prcs2svn/prcs2svn.py (working copy)
@@ -240,6 +240,9 @@
# Delete files after a merge
keep_deleted_files = False
+ # Translate Populate-Ignores
+ translate_ignores = True
+
# Translate the $Id$ etc. keywords.
translate_keywords = True
@@ -1058,6 +1061,9 @@
def ignore_set(self, prcs_project):
"Set which file must be ignored by subversion."
+ if not infos.translate_ignores:
+ return
+ info ("> Handling Populate-Ignore.")
p = prcs.ProjectParser()
p = p.parse(prcs_project + ".prj")
globs_local = []
@@ -1192,7 +1198,7 @@
"svn-root=", "copy-svn",
"svn-project=", "subdir=",
"keep-deleted-files",
- "no-rekey"])
+ "no-rekey", "no-ignore"])
except getopt.GetoptError, error_msg:
raise ScanOpt(str(error_msg))
@@ -1224,6 +1230,8 @@
infos.keep_deleted_files = True
elif o == "--svn-root":
infos.svn_root = a
+ elif o == "--no-ignores":
+ infos.translate_ignores = False
elif o == "--no-rekey":
infos.translate_keywords = False
elif o == "--svn-project":
@@ -1251,11 +1259,12 @@
print " [--copy-prcs]"
print " [--copy-svn]"
print " [--keep-deleted-files]"
+ print " [--no-ignore]"
+ print " [--no-rekey]"
print " [--preserve-dates]"
print " [--svn-root=URL]"
print " [--svn-project=NAME]"
print " [--subdir=PATH]"
- print " [--no-rekey]"
print " <project prcs> ..."
def version(self):
@@ -1283,6 +1292,9 @@
--copy-svn copy svn repository of a project and extend this copy
(need a svn root beginning with 'file' and not
'http').
--keep-deleted-files preserve deleted files after a merge operation
+ --no-ignores do not translate PRCS Populate-IGnore into Subversion
+ svn:ignore property.
+ This is useful to speed up tests.
--no-rekey do not translate PRCS keywords into Subversion keywords.
This is useful to speed up tests.
Show replies by date