Show More
@@ -29,7 +29,8 b' def relfilter(repo, files):' | |||||
29 | def relpath(repo, args): |
|
29 | def relpath(repo, args): | |
30 | if os.getcwd() != repo.root: |
|
30 | if os.getcwd() != repo.root: | |
31 | p = os.getcwd()[len(repo.root) + 1: ] |
|
31 | p = os.getcwd()[len(repo.root) + 1: ] | |
32 |
return [ util.pconvert(os.path.normpath(os.path.join(p, x))) |
|
32 | return [ util.pconvert(os.path.normpath(os.path.join(p, x))) | |
|
33 | for x in args ] | |||
33 | return args |
|
34 | return args | |
34 |
|
35 | |||
35 | def dodiff(ui, repo, files = None, node1 = None, node2 = None): |
|
36 | def dodiff(ui, repo, files = None, node1 = None, node2 = None): | |
@@ -362,7 +363,8 b' def debugcheckdirstate(ui, repo):' | |||||
362 | print "%s in state %s, but also listed in manifest1" % (f, state) |
|
363 | print "%s in state %s, but also listed in manifest1" % (f, state) | |
363 | errors += 1 |
|
364 | errors += 1 | |
364 | if state in "m" and f not in m1 and f not in m2: |
|
365 | if state in "m" and f not in m1 and f not in m2: | |
365 |
print "%s in state %s, but not listed in either manifest" % |
|
366 | print "%s in state %s, but not listed in either manifest" % \ | |
|
367 | (f, state) | |||
366 | errors += 1 |
|
368 | errors += 1 | |
367 | for f in m1: |
|
369 | for f in m1: | |
368 | state = repo.dirstate.state(f) |
|
370 | state = repo.dirstate.state(f) | |
@@ -370,7 +372,7 b' def debugcheckdirstate(ui, repo):' | |||||
370 | print "%s in manifest1, but listed as state %s" % (f, state) |
|
372 | print "%s in manifest1, but listed as state %s" % (f, state) | |
371 | errors += 1 |
|
373 | errors += 1 | |
372 | if errors: |
|
374 | if errors: | |
373 |
print ".hg/dirstate inconsistent with current parent's manifest |
|
375 | print ".hg/dirstate inconsistent with current parent's manifest" | |
374 | sys.exit(1) |
|
376 | sys.exit(1) | |
375 |
|
377 | |||
376 | def debugdumpdirstate(ui, repo): |
|
378 | def debugdumpdirstate(ui, repo): |
General Comments 0
You need to be logged in to leave comments.
Login now