##// END OF EJS Templates
fix users of dirstate.copies broken by b1f10d3223c1
Benoit Boissinot -
r3159:e43fd162 default
parent child Browse files
Show More
@@ -1162,8 +1162,8 b' def debugstate(ui, repo):'
1162 % (dc[file_][0], dc[file_][1] & 0777, dc[file_][2],
1162 % (dc[file_][0], dc[file_][1] & 0777, dc[file_][2],
1163 time.strftime("%x %X",
1163 time.strftime("%x %X",
1164 time.localtime(dc[file_][3])), file_))
1164 time.localtime(dc[file_][3])), file_))
1165 for f in repo.dirstate.copies:
1165 for f in repo.dirstate.copies():
1166 ui.write(_("copy: %s -> %s\n") % (repo.dirstate.copies[f], f))
1166 ui.write(_("copy: %s -> %s\n") % (repo.dirstate.copied(f), f))
1167
1167
1168 def debugdata(ui, file_, rev):
1168 def debugdata(ui, file_, rev):
1169 """dump the contents of an data file revision"""
1169 """dump the contents of an data file revision"""
@@ -2472,8 +2472,10 b' def status(ui, repo, *pats, **opts):'
2472 for f in changes:
2472 for f in changes:
2473 ui.write(format % f)
2473 ui.write(format % f)
2474 if ((all or opts.get('copies')) and not opts.get('no_status')
2474 if ((all or opts.get('copies')) and not opts.get('no_status')
2475 and opt == 'added' and repo.dirstate.copies.has_key(f)):
2475 and opt == 'added'):
2476 ui.write(' %s%s' % (repo.dirstate.copies[f], end))
2476 copied = repo.dirstate.copied(f)
2477 if copied:
2478 ui.write(' %s%s' % (copied, end))
2477
2479
2478 def tag(ui, repo, name, rev_=None, **opts):
2480 def tag(ui, repo, name, rev_=None, **opts):
2479 """add a tag for the current tip or a given revision
2481 """add a tag for the current tip or a given revision
@@ -433,7 +433,7 b' def diff(repo, node1=None, node2=None, f'
433 def read(f):
433 def read(f):
434 return repo.wread(f)
434 return repo.wread(f)
435 def renamed(f):
435 def renamed(f):
436 src = repo.dirstate.copies.get(f)
436 src = repo.dirstate.copied(f)
437 parent = repo.dirstate.parents()[0]
437 parent = repo.dirstate.parents()[0]
438 if src:
438 if src:
439 f = src[0]
439 f = src[0]
General Comments 0
You need to be logged in to leave comments. Login now