# HG changeset patch # User mpm@selenic.com # Date 1126639098 18000 # Node ID 5381b0d88e9e31cf125383b0250dba9f1fa19802 # Parent eb3cc5e2eb89fb69996adc346da5cd1b1ac95911 Fix abort message for clone diff -r eb3cc5e2eb89 -r 5381b0d88e9e mercurial/commands.py --- a/mercurial/commands.py Tue Sep 13 14:16:15 2005 -0500 +++ b/mercurial/commands.py Tue Sep 13 14:18:18 2005 -0500 @@ -592,7 +592,7 @@ dest = os.path.basename(os.path.normpath(source)) if os.path.exists(dest): - raise util.Abort("destination '%s' already exists") + raise util.Abort("destination '%s' already exists", dest) dest = os.path.realpath(dest) diff -r eb3cc5e2eb89 -r 5381b0d88e9e mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Sep 13 14:16:15 2005 -0500 +++ b/mercurial/localrepo.py Tue Sep 13 14:18:18 2005 -0500 @@ -1108,12 +1108,10 @@ self.ui.debug("other deleted %s\n" % f) remove.append(f) # other deleted it else: - if n == m1.get(f, nullid): # same as parent - if p2 == pa: # going backwards? - self.ui.debug("remote deleted %s\n" % f) - remove.append(f) - else: - self.ui.debug("local created %s, keeping\n" % f) + # file is not in ancestor or target + if n == m1.get(f, nullid) or force: # same as parent + self.ui.debug("remote deleted %s\n" % f) + remove.append(f) else: self.ui.debug("working dir created %s, keeping\n" % f) diff -r eb3cc5e2eb89 -r 5381b0d88e9e tests/test-tag.out --- a/tests/test-tag.out Tue Sep 13 14:16:15 2005 -0500 +++ b/tests/test-tag.out Tue Sep 13 14:18:18 2005 -0500 @@ -16,6 +16,5 @@ date: Thu Jan 1 00:00:00 1970 +0000 summary: test -abort: working copy of .hgtags is changed! -(please commit .hgtags manually) +abort: working copy of .hgtags is changed (please commit .hgtags manually) failed