[PATCH 02 of 10] Ignore darcs administrative directory

jgoerzen at complete.org jgoerzen at complete.org
Sun Mar 4 13:16:10 CST 2007


# HG changeset patch
# User Thomas Arendsen Hein <thomas at intevation.de>
# Date 1172406055 -3600
# Node ID 75f87e4fcfce0d11ebdb55eba0c32cebba5c9f09
# Parent  e477842c5567cca9d94d4469c47aa2b17d13914c
Ignore darcs administrative directory

diff --git a/contrib/darcs2hg.py b/contrib/darcs2hg.py
--- a/contrib/darcs2hg.py
+++ b/contrib/darcs2hg.py
@@ -171,6 +171,8 @@ if __name__ == "__main__":
 		sys.exit(-1)
 	if skip == None:
 		cmd("hg init \"%s\"" % (hg_repo))
+		cmd("echo 'syntax: glob' >> .hgignore", hg_repo)
+		cmd("echo _darcs >> .hgignore", hg_repo)
 		cmd("darcs initialize", hg_repo)
 	# Get the changes from the Darcs repository
 	change_number = 0



More information about the Mercurial-devel mailing list