Show More
@@ -58,7 +58,10 b' def dodiff(ui, repo, diffcmd, diffopts, ' | |||||
58 | '''snapshot files as of some revision''' |
|
58 | '''snapshot files as of some revision''' | |
59 | changes = repo.changelog.read(node) |
|
59 | changes = repo.changelog.read(node) | |
60 | mf = repo.manifest.read(changes[0]) |
|
60 | mf = repo.manifest.read(changes[0]) | |
61 |
dirname = |
|
61 | dirname = os.path.basename(repo.root) | |
|
62 | if dirname == "": | |||
|
63 | dirname = "root" | |||
|
64 | dirname = '%s.%s' % (dirname, short(node)) | |||
62 | base = os.path.join(tmproot, dirname) |
|
65 | base = os.path.join(tmproot, dirname) | |
63 | os.mkdir(base) |
|
66 | os.mkdir(base) | |
64 | if not ui.quiet: |
|
67 | if not ui.quiet: | |
@@ -82,6 +85,8 b' def dodiff(ui, repo, diffcmd, diffopts, ' | |||||
82 | if not using snapshot, -I/-X does not work and recursive diff |
|
85 | if not using snapshot, -I/-X does not work and recursive diff | |
83 | in tools like kdiff3 and meld displays too many files.''' |
|
86 | in tools like kdiff3 and meld displays too many files.''' | |
84 | dirname = os.path.basename(repo.root) |
|
87 | dirname = os.path.basename(repo.root) | |
|
88 | if dirname == "": | |||
|
89 | dirname = "root" | |||
85 | base = os.path.join(tmproot, dirname) |
|
90 | base = os.path.join(tmproot, dirname) | |
86 | os.mkdir(base) |
|
91 | os.mkdir(base) | |
87 | if not ui.quiet: |
|
92 | if not ui.quiet: |
General Comments 0
You need to be logged in to leave comments.
Login now