##// END OF EJS Templates
subrepo: use posixpath when diffing, for consistent paths...
Bryan O'Sullivan -
r17968:a9f4a607 default
parent child Browse files
Show More
@@ -6,7 +6,7 b''
6 # This software may be used and distributed according to the terms of the
6 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2 or any later version.
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 import tempfile, zlib, shutil
10 import tempfile, zlib, shutil
11
11
12 from i18n import _
12 from i18n import _
@@ -1655,7 +1655,7 b' def trydiff(repo, revs, ctx1, ctx2, modi'
1655 copy, getfilectx, opts, losedatafn, prefix):
1655 copy, getfilectx, opts, losedatafn, prefix):
1656
1656
1657 def join(f):
1657 def join(f):
1658 return os.path.join(prefix, f)
1658 return posixpath.join(prefix, f)
1659
1659
1660 def addmodehdr(header, omode, nmode):
1660 def addmodehdr(header, omode, nmode):
1661 if omode != nmode:
1661 if omode != nmode:
@@ -446,7 +446,7 b' class hgsubrepo(abstractsubrepo):'
446 node2 = node.bin(node2)
446 node2 = node.bin(node2)
447 cmdutil.diffordiffstat(self._repo.ui, self._repo, diffopts,
447 cmdutil.diffordiffstat(self._repo.ui, self._repo, diffopts,
448 node1, node2, match,
448 node1, node2, match,
449 prefix=os.path.join(prefix, self._path),
449 prefix=posixpath.join(prefix, self._path),
450 listsubrepos=True, **opts)
450 listsubrepos=True, **opts)
451 except error.RepoLookupError, inst:
451 except error.RepoLookupError, inst:
452 self._repo.ui.warn(_('warning: error "%s" in subrepository "%s"\n')
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