Mercurial > hg
diff hgext/convert/convcmd.py @ 26035:86598f4fe1cf
convert: add function to test if file is from source
This adds a base implementation of a function that tests if a given file from a
target repo came from the source repo. This will be used later to detect which
files did not come from the source repo during a merge, so we can merge those
files correctly instead of dropping them.
author | Durham Goode <durham@fb.com> |
---|---|
date | Sat, 15 Aug 2015 13:44:55 -0700 |
parents | 584044e5ad57 |
children | 56b2bcea2529 |
line wrap: on
line diff
--- a/hgext/convert/convcmd.py Sat Aug 15 17:50:59 2015 +0900 +++ b/hgext/convert/convcmd.py Sat Aug 15 13:44:55 2015 -0700 @@ -120,6 +120,9 @@ item=file, total=self.filecount) return self.source.getfile(file, rev) + def targetfilebelongstosource(self, targetfilename): + return self.source.targetfilebelongstosource(targetfilename) + def lookuprev(self, rev): return self.source.lookuprev(rev)