Show More
@@ -6,7 +6,7 b'' | |||
|
6 | 6 | # This software may be used and distributed according to the terms of the |
|
7 | 7 | # GNU General Public License version 2 or any later version. |
|
8 | 8 | |
|
9 | import cStringIO, email.Parser, os, errno, re | |
|
9 | import cStringIO, email.Parser, os, errno, re, posixpath | |
|
10 | 10 | import tempfile, zlib, shutil |
|
11 | 11 | |
|
12 | 12 | from i18n import _ |
@@ -1655,7 +1655,7 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||
|
1655 | 1655 | copy, getfilectx, opts, losedatafn, prefix): |
|
1656 | 1656 | |
|
1657 | 1657 | def join(f): |
|
1658 |
return |
|
|
1658 | return posixpath.join(prefix, f) | |
|
1659 | 1659 | |
|
1660 | 1660 | def addmodehdr(header, omode, nmode): |
|
1661 | 1661 | if omode != nmode: |
@@ -446,7 +446,7 b' class hgsubrepo(abstractsubrepo):' | |||
|
446 | 446 | node2 = node.bin(node2) |
|
447 | 447 | cmdutil.diffordiffstat(self._repo.ui, self._repo, diffopts, |
|
448 | 448 | node1, node2, match, |
|
449 |
prefix= |
|
|
449 | prefix=posixpath.join(prefix, self._path), | |
|
450 | 450 | listsubrepos=True, **opts) |
|
451 | 451 | except error.RepoLookupError, inst: |
|
452 | 452 | self._repo.ui.warn(_('warning: error "%s" in subrepository "%s"\n') |
General Comments 0
You need to be logged in to leave comments.
Login now