Changeset 65a0bfb13411…
Parent 9e5f67217e8e…
by Andrew Pritchard <andrewp@fogcreek.com>
Changes to 2 files · Browse files at 65a0bfb13411 Showing diff from parent 9e5f67217e8e Diff from another changeset...
@@ -411,8 +411,6 @@ lfdirstate.add(lfile)
elif expectedhash == lfutil.readstandin(repo, lfile, '.'):
lfdirstate.normal(lfile)
- else:
- lfutil.dirstate_normaldirty(lfdirstate, lfile)
removed = 0
for lfile in lfdirstate:
|
@@ -83,22 +83,6 @@ forget = repo[None].forget
return forget(list)
-def dirstate_normaldirty(dirstate, file):
- try:
- normaldirty = dirstate.normaldirty
- except AttributeError:
- # Mercurial >= 1.6: HAAAACK: I should not be using normaldirty()
- # (now called otherparent()), and dirstate in 1.6 prevents me
- # from doing so. So reimplement it here until I figure out the
- # right fix.
- def normaldirty(f):
- dirstate._dirty = True
- dirstate._addpath(f)
- dirstate._map[f] = ('n', 0, -2, -1)
- if f in dirstate._copymap:
- del dirstate._copymap[f]
- normaldirty(unixpath(file))
-
def findoutgoing(repo, remote, force):
# First attempt is for Mercurial <= 1.5 second is for >= 1.6
try:
@@ -206,14 +190,14 @@ curhash = hashfile(bigfile)
except IOError, err:
if err.errno == errno.ENOENT:
- dirstate_normaldirty(lfdirstate, bigfile)
+ lfdirstate.normallookup(bigfile)
else:
raise
else:
if curhash == hash:
lfdirstate.normal(unixpath(bigfile))
else:
- dirstate_normaldirty(lfdirstate, bigfile)
+ lfdirstate.normallookup(bigfile)
lfdirstate.write()
|
Loading...