diff hgext/transplant.py @ 8173:d3fb413667e5

transplant: remove the restriction that the destination be nonempty. Test fixed by Patrick Mezard <pmezard@gmail.com>
author Jacob Lee <artdent@gmail.com>
date Fri, 24 Apr 2009 17:00:18 -0500
parents 6ee71f78497c
children 2660e7002413
line wrap: on
line diff
--- a/hgext/transplant.py	Sat Apr 25 21:27:47 2009 +0800
+++ b/hgext/transplant.py	Fri Apr 24 17:00:18 2009 -0500
@@ -528,8 +528,6 @@
     tp = transplanter(ui, repo)
 
     p1, p2 = repo.dirstate.parents()
-    if p1 == revlog.nullid:
-        raise util.Abort(_('no revision checked out'))
     if not opts.get('continue'):
         if p2 != revlog.nullid:
             raise util.Abort(_('outstanding uncommitted merges'))