For the record, I still believe the commonprefix of a pair of identical paths should be the path itself as it is the longest sub-component of these paths.
> > + $ hg debugtemplate '{"foo/bar\nfoo/bar\n"|splitlines|commonprefix}\n' > > + foo > > should be "foo/bar" And removing the leading slash is awkward. > > + $ hg debugtemplate '{"/foo/bar\n/foo/bar\n"|splitlines|commonprefix}\n' > > + foo > > should be "/foo/bar" _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel