[PATCH 03 of 10] darcs pull does not clean, so revert repo before feeding to mercurial

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


# HG changeset patch
# User Guy Brand <gb at isis.u-strasbg.fr>
# Date 1172095555 -3600
# Node ID b81693da7440fae39cf7faa0ce496fc78bb77b03
# Parent  75f87e4fcfce0d11ebdb55eba0c32cebba5c9f09
darcs pull does not clean, so revert repo before feeding to mercurial

diff --git a/contrib/darcs2hg.py b/contrib/darcs2hg.py
--- a/contrib/darcs2hg.py
+++ b/contrib/darcs2hg.py
@@ -94,6 +94,7 @@ def darcs_pull(hg_repo, darcs_repo, chas
 	old_tip = darcs_tip(darcs_repo)
 	res     = cmd("darcs pull \"%s\" --all --match=\"hash %s\"" % (darcs_repo, chash), hg_repo)
 	print res
+	cmd("darcs revert --all", hg_repo, silent=True)
 	new_tip = darcs_tip(darcs_repo)
 	if not new_tip != old_tip + 1:
 		error("Darcs pull did not work as expected: " + res)



More information about the Mercurial-devel mailing list