rust/hg-core/src/requirements.rs
changeset 49061 81d293eb5264
parent 48409 005ae1a343f8
child 49191 4450faeb52bb
equal deleted inserted replaced
49058:d8a38186a092 49061:81d293eb5264
    90     NODEMAP_REQUIREMENT,
    90     NODEMAP_REQUIREMENT,
    91     // Not all commands support `sparse` and `narrow`. The commands that do
    91     // Not all commands support `sparse` and `narrow`. The commands that do
    92     // not should opt out by checking `has_sparse` and `has_narrow`.
    92     // not should opt out by checking `has_sparse` and `has_narrow`.
    93     SPARSE_REQUIREMENT,
    93     SPARSE_REQUIREMENT,
    94     NARROW_REQUIREMENT,
    94     NARROW_REQUIREMENT,
       
    95     // rhg doesn't care about bookmarks at all yet
       
    96     BOOKMARKS_IN_STORE_REQUIREMENT,
    95 ];
    97 ];
    96 
    98 
    97 // Copied from mercurial/requirements.py:
    99 // Copied from mercurial/requirements.py:
    98 
   100 
    99 pub(crate) const DIRSTATE_V2_REQUIREMENT: &str = "dirstate-v2";
   101 pub(crate) const DIRSTATE_V2_REQUIREMENT: &str = "dirstate-v2";
   100 
   102 
   101 /// When narrowing is finalized and no longer subject to format changes,
   103 /// When narrowing is finalized and no longer subject to format changes,
   102 /// we should move this to just "narrow" or similar.
   104 /// we should move this to just "narrow" or similar.
   103 #[allow(unused)]
   105 #[allow(unused)]
   104 pub(crate) const NARROW_REQUIREMENT: &str = "narrowhg-experimental";
   106 pub(crate) const NARROW_REQUIREMENT: &str = "narrowhg-experimental";
       
   107 
       
   108 /// Bookmarks must be stored in the `store` part of the repository and will be
       
   109 /// share accross shares
       
   110 #[allow(unused)]
       
   111 pub(crate) const BOOKMARKS_IN_STORE_REQUIREMENT: &str = "bookmarksinstore";
   105 
   112 
   106 /// Enables sparse working directory usage
   113 /// Enables sparse working directory usage
   107 #[allow(unused)]
   114 #[allow(unused)]
   108 pub(crate) const SPARSE_REQUIREMENT: &str = "exp-sparse";
   115 pub(crate) const SPARSE_REQUIREMENT: &str = "exp-sparse";
   109 
   116