[MonoDevelop] VersionControl Questions

Paul Lange palango at gmx.de
Sat Sep 13 19:48:47 EDT 2008


Hello,

I'm working on a Bazaar extension to the VersionControl plugin.

Basic file status indication works (more or less) but I have some
questionsregarding VC development:

    * How is the addin notices of a changes file. I found the method
NotifyFileChanged(string path) in the Repository class. Anyhow I'm not
sure if this method is called if a file has been changed in MonoDevelop.

    * The method GetPathToBaseText (string localFile) returns a path to
the last version of the file updated from the repository. This is
possible with subversion where such a file is stored. Accessing this
file is not easy/possible with bazaar. For what is this method needed?

    * The comments of the method void Update (string localPath, bool
recurse, IProgressMonitor monitor); say that it returns a list of
updated files. If so, how is this done.

    * If I open a bzr-controlled project with monodevelop and open the
solutionpad-context-menu the first time I get a bunch of errors like
this. How can I avoid that?

    System.Reflection.TargetInvocationException: Exception has been
    thrown by the target of an invocation. --->
    System.NullReferenceException: Object reference not set to an
    instance of an object
      at MonoDevelop.VersionControl.AddinCommandHandler.RunCommand
    (Commands cmd, Boolean test) [0x00000]
      at MonoDevelop.VersionControl.AddinCommandHandler.TestCommand
    (Commands cmd, MonoDevelop.Components.Commands.CommandInfo item)
    [0x00000]
      at MonoDevelop.VersionControl.AddinCommandHandler.UpdatePublish
    (MonoDevelop.Components.Commands.CommandInfo item) [0x00000]
      at (wrapper managed-to-native)
    System.Reflection.MonoMethod:InternalInvoke (object,object[])
      at System.Reflection.MonoMethod.Invoke (System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.CultureInfo
    culture) [0x00000] --- End of inner exception stack trace ---

      at System.Reflection.MonoMethod.Invoke (System.Object obj,
    BindingFlags invokeAttr, System.Reflection.Binder binder,
    System.Object[] parameters, System.Globalization.CultureInfo
    culture) [0x00000]
      at System.Reflection.MethodBase.Invoke (System.Object obj,
    System.Object[] parameters) [0x00000]
      at MonoDevelop.Components.Commands.CommandUpdaterInfo.Run
    (System.Object cmdTarget,
    MonoDevelop.Components.Commands.CommandInfo info) [0x00000]
      at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo
    (System.Object commandId, System.Object initialTarget) [0x00000]

Thanks a lot!
P. Lange


More information about the Monodevelop-list mailing list