11#![ allow( unused_variables) ]
22
3- use super :: * ;
3+ use josh :: { cache , filter , history , josh_error , JoshResult } ;
44use juniper:: { graphql_object, EmptyMutation , EmptySubscription , FieldResult } ;
55
66pub struct Revision {
@@ -674,7 +674,7 @@ impl Path {
674674
675675 fn dir ( & self , relative : String ) -> FieldResult < Path > {
676676 Ok ( Path {
677- path : normalize_path ( & self . path . join ( relative) ) ,
677+ path : josh :: normalize_path ( & self . path . join ( relative) ) ,
678678 commit_id : self . commit_id ,
679679 filter : self . filter ,
680680 tree : self . tree ,
@@ -955,10 +955,7 @@ impl RepositoryMut {
955955 filter:: nop ( )
956956 } ;
957957
958- Ok ( RevMut {
959- at : at,
960- filter : filter,
961- } )
958+ Ok ( RevMut { at, filter } )
962959 }
963960}
964961
@@ -983,7 +980,7 @@ impl Repository {
983980 pattern. unwrap_or_else( || "refs/heads/*" . to_string( ) )
984981 ) ;
985982
986- log :: debug!( " refname: {:?}" , refname) ;
983+ tracing :: debug!( refname = refname, "refs" ) ;
987984
988985 let mut refs = vec ! [ ] ;
989986
@@ -1029,7 +1026,7 @@ impl Repository {
10291026 }
10301027}
10311028
1032- regex_parsed ! (
1029+ josh :: regex_parsed!(
10331030 UpstreamRef ,
10341031 r"refs/josh/upstream/.*[.]git/(?P<reference>refs/heads/.*)" ,
10351032 [ reference]
@@ -1066,7 +1063,7 @@ pub fn repo_schema(name: String, local: bool) -> RepoSchema {
10661063 let ns = if local {
10671064 "" . to_string ( )
10681065 } else {
1069- format ! ( "refs/josh/upstream/{}.git/" , to_ns( & name) )
1066+ format ! ( "refs/josh/upstream/{}.git/" , josh :: to_ns( & name) )
10701067 } ;
10711068 RepoSchema :: new (
10721069 Repository { name, ns } ,
0 commit comments