1
1
#![ allow( unused_variables) ]
2
2
3
- use super :: * ;
3
+ use josh :: { cache , filter , history , josh_error , JoshResult } ;
4
4
use juniper:: { graphql_object, EmptyMutation , EmptySubscription , FieldResult } ;
5
5
6
6
pub struct Revision {
@@ -674,7 +674,7 @@ impl Path {
674
674
675
675
fn dir ( & self , relative : String ) -> FieldResult < Path > {
676
676
Ok ( Path {
677
- path : normalize_path ( & self . path . join ( relative) ) ,
677
+ path : josh :: normalize_path ( & self . path . join ( relative) ) ,
678
678
commit_id : self . commit_id ,
679
679
filter : self . filter ,
680
680
tree : self . tree ,
@@ -955,10 +955,7 @@ impl RepositoryMut {
955
955
filter:: nop ( )
956
956
} ;
957
957
958
- Ok ( RevMut {
959
- at : at,
960
- filter : filter,
961
- } )
958
+ Ok ( RevMut { at, filter } )
962
959
}
963
960
}
964
961
@@ -983,7 +980,7 @@ impl Repository {
983
980
pattern. unwrap_or_else( || "refs/heads/*" . to_string( ) )
984
981
) ;
985
982
986
- log :: debug!( " refname: {:?}" , refname) ;
983
+ tracing :: debug!( refname = refname, "refs" ) ;
987
984
988
985
let mut refs = vec ! [ ] ;
989
986
@@ -1029,7 +1026,7 @@ impl Repository {
1029
1026
}
1030
1027
}
1031
1028
1032
- regex_parsed ! (
1029
+ josh :: regex_parsed!(
1033
1030
UpstreamRef ,
1034
1031
r"refs/josh/upstream/.*[.]git/(?P<reference>refs/heads/.*)" ,
1035
1032
[ reference]
@@ -1066,7 +1063,7 @@ pub fn repo_schema(name: String, local: bool) -> RepoSchema {
1066
1063
let ns = if local {
1067
1064
"" . to_string ( )
1068
1065
} else {
1069
- format ! ( "refs/josh/upstream/{}.git/" , to_ns( & name) )
1066
+ format ! ( "refs/josh/upstream/{}.git/" , josh :: to_ns( & name) )
1070
1067
} ;
1071
1068
RepoSchema :: new (
1072
1069
Repository { name, ns } ,
0 commit comments