mercurial/HGRemote.st
changeset 206 7985d1be806a
parent 151 527a1e85aef8
child 210 54a73fa50d40
--- a/mercurial/HGRemote.st	Fri Jan 25 20:29:20 2013 +0000
+++ b/mercurial/HGRemote.st	Tue Jan 29 16:04:17 2013 +0000
@@ -18,6 +18,16 @@
     ^ url
 ! !
 
+!HGRemote methodsFor:'converting'!
+
+asString
+    ^name notNil 
+        ifTrue:[name] 
+        ifFalse:[url asString].
+
+    "Created: / 29-01-2013 / 15:43:52 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
 !HGRemote methodsFor:'displaying'!
 
 displayString
@@ -71,3 +81,4 @@
 
     ^ '$Changeset: <not expanded> $'
 ! !
+