Show More
@@ -112,7 +112,7 b' fn check_exec_impl(path: impl AsRef<Path' | |||
|
112 | 112 | Ok(false) |
|
113 | 113 | } |
|
114 | 114 | |
|
115 |
/// This function is a rust rewrite of |
|
|
115 | /// This function is a rust rewrite of `checkexec` function from `posix.py` | |
|
116 | 116 | /// Returns true if the filesystem supports execute permissions. |
|
117 | 117 | pub fn check_exec(path: impl AsRef<Path>) -> bool { |
|
118 | 118 | check_exec_impl(path).unwrap_or(false) |
@@ -69,8 +69,8 b' pub trait NodeMap {' | |||
|
69 | 69 | /// |
|
70 | 70 | /// If no Revision matches the given prefix, `Ok(None)` is returned. |
|
71 | 71 | /// |
|
72 |
/// If several Revisions match the given prefix, a |
|
|
73 | /// error is returned. | |
|
72 | /// If several Revisions match the given prefix, a | |
|
73 | /// [MultipleResults](NodeMapError) error is returned. | |
|
74 | 74 | fn find_bin( |
|
75 | 75 | &self, |
|
76 | 76 | idx: &impl RevlogIndex, |
@@ -86,8 +86,8 b' pub trait NodeMap {' | |||
|
86 | 86 | /// |
|
87 | 87 | /// Returns `None` if no `Revision` could be found for the prefix. |
|
88 | 88 | /// |
|
89 |
/// If several Revisions match the given prefix, a |
|
|
90 | /// error is returned. | |
|
89 | /// If several Revisions match the given prefix, a | |
|
90 | /// [MultipleResults](NodeMapError) error is returned. | |
|
91 | 91 | fn unique_prefix_len_bin( |
|
92 | 92 | &self, |
|
93 | 93 | idx: &impl RevlogIndex, |
@@ -113,7 +113,7 b' pub trait MutableNodeMap: NodeMap {' | |||
|
113 | 113 | ) -> Result<(), NodeMapError>; |
|
114 | 114 | } |
|
115 | 115 | |
|
116 |
/// Low level NodeTree [`Block |
|
|
116 | /// Low level NodeTree [`Block`] elements | |
|
117 | 117 | /// |
|
118 | 118 | /// These are exactly as for instance on persistent storage. |
|
119 | 119 | type RawElement = unaligned::I32Be; |
@@ -301,7 +301,7 b' pub(crate) enum MergeResult<V> {' | |||
|
301 | 301 | /// calling `merge(key, left_value, right_value)` to resolve keys that exist in |
|
302 | 302 | /// both. |
|
303 | 303 | /// |
|
304 | /// CC https://github.com/bodil/im-rs/issues/166 | |
|
304 | /// CC <https://github.com/bodil/im-rs/issues/166> | |
|
305 | 305 | pub(crate) fn ordmap_union_with_merge<K, V>( |
|
306 | 306 | left: OrdMap<K, V>, |
|
307 | 307 | right: OrdMap<K, V>, |
@@ -479,7 +479,7 b' impl Extend<u8> for HgPathBuf {' | |||
|
479 | 479 | } |
|
480 | 480 | } |
|
481 | 481 | |
|
482 | /// TODO: Once https://www.mercurial-scm.org/wiki/WindowsUTF8Plan is | |
|
482 | /// TODO: Once <https://www.mercurial-scm.org/wiki/WindowsUTF8Plan> is | |
|
483 | 483 | /// implemented, these conversion utils will have to work differently depending |
|
484 | 484 | /// on the repository encoding: either `UTF-8` or `MBCS`. |
|
485 | 485 |
General Comments 0
You need to be logged in to leave comments.
Login now