[PATCH 2 of 3] Ignore darcs administrative directory

Guy Brand gb at isis.u-strasbg.fr
Sat Feb 24 18:52:49 UTC 2007


# HG changeset patch
# User Guy Brand <gb at isis.u-strasbg.fr>
# Date 1172050333 -3600
# Node ID f77c66e897664f504738286d93ca839999bc2f02
# Parent  9028722e609686fcf7a7675b4a1dd294b092dcfe
Ignore darcs administrative directory

diff -r 9028722e6096 -r f77c66e89766 contrib/darcs2hg.py
--- a/contrib/darcs2hg.py	Tue Feb 13 00:03:57 2007 +0100
+++ b/contrib/darcs2hg.py	Wed Feb 21 10:32:13 2007 +0100
@@ -171,6 +171,7 @@ if __name__ == "__main__":
 		sys.exit(-1)
 	if skip == None:
 		cmd("hg init \"%s\"" % (hg_repo))
+		cmd("echo _darcs >> \"%s/.hgignore\"" % (hg_repo))
 		cmd("darcs initialize", hg_repo)
 	# Get the changes from the Darcs repository
 	change_number = 0



More information about the Mercurial mailing list